Example usage for javax.persistence GenerationType AUTO

List of usage examples for javax.persistence GenerationType AUTO

Introduction

In this page you can find the example usage for javax.persistence GenerationType AUTO.

Prototype

GenerationType AUTO

To view the source code for javax.persistence GenerationType AUTO.

Click Source Link

Document

Indicates that the persistence provider should pick an appropriate strategy for the particular database.

Usage

From source file:com.melayer.camzia.domain.MeRole.java

@Id
@GeneratedValue(strategy = GenerationType.AUTO)
@Column(name = "id_role", unique = true, nullable = false)
public Long getIdRole() {
    return idRole;
}

From source file:org.tynamo.demo.Category.java

@Id
@GeneratedValue(strategy = GenerationType.AUTO)
public Integer getId() {
    return id;
}

From source file:org.opensaas.exampleapp.model.FooBar.java

@Id
@GeneratedValue(strategy = GenerationType.AUTO)
public Long getId() {
    return _id;
}

From source file:mx.edu.um.model.Pais.java

/**
 * @return the id
 */
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
@DocumentId
public Long getId() {
    return id;
}

From source file:com.melayer.camzia.domain.MeUser.java

@Id
@GeneratedValue(strategy = GenerationType.AUTO)
@Column(name = "id_user", unique = true, nullable = false)
public Long getIdUser() {
    return idUser;
}

From source file:io.github.gammaliu.demo.domain.Address.java

@Id
@GeneratedValue(strategy = GenerationType.AUTO)
@JsonIgnore
public Integer getId() {
    return id;
}

From source file:gt.entities.UserProfile.java

@Id
@GeneratedValue(strategy = GenerationType.AUTO)
@Column(name = "idUserProfile", unique = true, nullable = false)
public Long getIdUserProfile() {
    return idUserProfile;
}

From source file:com.minlia.cloud.framework.common.persistence.model.AbstractIdentifiableEntity.java

@Id
@GeneratedValue(strategy = GenerationType.AUTO)
@Override
public Long getId() {
    return id;
}

From source file:org.jzkit.ServiceDirectory.AttributeSetDBO.java

@Id
@Column(name = "ID")
@GeneratedValue(strategy = GenerationType.AUTO)
public Long getId() {
    return id;
}

From source file:gt.entities.User.java

@Id
@GeneratedValue(strategy = GenerationType.AUTO)
@Column(name = "idUser", unique = true, nullable = false)
public Long getIdUser() {
    return idUser;
}