List of usage examples for javax.persistence GenerationType AUTO
GenerationType AUTO
To view the source code for javax.persistence GenerationType AUTO.
Click Source Link
From source file:ch.astina.hesperid.model.user.User.java
@Id @GeneratedValue(strategy = GenerationType.AUTO) public Long getId() { return id; }
From source file:com.yuga.ygplatform.modules.sys.entity.Log.java
@Id @GeneratedValue(strategy = GenerationType.AUTO) // @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "seq_sys_log") // @SequenceGenerator(name = "seq_sys_log", sequenceName = "seq_sys_log") public Long getId() { return id;//from w w w. j a v a2 s. c o m }
From source file:edu.uiowa.icts.bluebutton.domain.LabResultSynonym.java
/*****labResultSynonymId*****/ @javax.persistence.SequenceGenerator(name = "gen", sequenceName = "bluebutton.seqnum", allocationSize = 1) @Id/*from w ww . ja v a 2s. co m*/ @GeneratedValue(strategy = GenerationType.AUTO, generator = "gen") @Column(name = "lab_result_synonym_id", unique = true, nullable = false) public Integer getLabResultSynonymId() { return labResultSynonymId; }
From source file:com.clican.pluto.fsm.model.Session.java
@Id @GeneratedValue(strategy = GenerationType.AUTO) @Column(name = "ID") public Long getId() { return id; }
From source file:edu.uiowa.icts.bluebutton.domain.LoincCodeCategory.java
/*****id*****/ @javax.persistence.SequenceGenerator(name = "gen", sequenceName = "bluebutton.seqnum", allocationSize = 1) @Id/*from ww w . ja v a 2 s . com*/ @GeneratedValue(strategy = GenerationType.AUTO, generator = "gen") @Column(name = "id", unique = true, nullable = false) public Integer getId() { return id; }
From source file:gt.entities.Forum.java
@Id @GeneratedValue(strategy = GenerationType.AUTO) @Column(name = "idForum", unique = true, nullable = false) public long getIdForum() { return idForum; }
From source file:com.hive.surveymanage.entity.IndustryEntity.java
@Id @GeneratedValue(strategy = GenerationType.AUTO) @GenericGenerator(name = "idGenerator", strategy = "native") @Column(name = "ID", unique = true, nullable = true) public Long getId() { return this.id; }
From source file:org.orcid.persistence.jpa.entities.OrcidOauth2TokenDetail.java
/** * This should be implemented by all entity classes to return the id of the * entity represented by the <T> generic argument * //from w w w . j a v a 2 s.c o m * @return the id of the entity */ @Id @GeneratedValue(strategy = GenerationType.AUTO, generator = "access_token_seq") @SequenceGenerator(name = "access_token_seq", sequenceName = "access_token_seq") @Column(name = "id") public Long getId() { return id; }
From source file:gov.nih.nci.caarray.domain.MultiPartBlob.java
/** * Returns the id. * * @return the id */ @Override @Id @GeneratedValue(strategy = GenerationType.AUTO) public Long getId() { return this.id; }
From source file:edu.scripps.fl.pubchem.db.PCAssayXRef.java
@Id @Column(name = "pcassay_xref_id") @GeneratedValue(strategy = GenerationType.AUTO) public Long getId() { return id; }