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:edu.scripps.fl.pubchem.db.PCAssayColumn.java
@Id @Column(name = "column_id") @GeneratedValue(strategy = GenerationType.AUTO) public Integer getId() { return id; }
From source file:org.openhie.openempi.model.User.java
@Id @GeneratedValue(strategy = GenerationType.AUTO) @XmlElement public Long getId() { return id; }
From source file:edu.scripps.fl.pubchem.db.PCAssayPanel.java
@Id @Column(name = "panel_id") @GeneratedValue(strategy = GenerationType.AUTO) public Integer getId() { return id; }
From source file:it.jugpadova.po.Speaker.java
/** * Get the entity id./*ww w .j a v a2 s .c om*/ * * @return the entity id. */ @Id @DocumentId @GeneratedValue(strategy = GenerationType.AUTO) @Override public Long getId() { return this.id; }
From source file:de.pro.dbw.file.dream.api.DreamModel.java
@Id @GeneratedValue(strategy = GenerationType.AUTO) @Column(name = DREAM_MODEL__COLUMN_NAME__ID) public long getId() { if (this.idProperty == null) { return _id; } else {// www. j a va2s . c o m return idProperty.get(); } }
From source file:org.tonguetied.keywordmanagement.Keyword.java
@Id @GeneratedValue(strategy = GenerationType.AUTO, generator = "keyword_generator") @SequenceGenerator(name = "keyword_generator", sequenceName = "keyword_id_seq") @Column(name = COL_ID)//from w w w . j a v a 2 s . c o m public Long getId() { return id; }
From source file:org.musicrecital.model.User.java
@Id @GeneratedValue(strategy = GenerationType.AUTO) @DocumentId public Long getId() { return id; }
From source file:org.nuxeo.ecm.platform.audit.impl.LogEntryImpl.java
/** * @return the log identifier/*www . jav a2 s. c om*/ */ @Override @Id @GeneratedValue(strategy = GenerationType.AUTO) @Column(name = "LOG_ID", nullable = false, columnDefinition = "integer") public long getId() { return id; }
From source file:ru.runa.wfe.execution.Process.java
@Override @Id/*from w w w . j a v a2s . c o m*/ @GeneratedValue(strategy = GenerationType.AUTO, generator = "sequence") @SequenceGenerator(name = "sequence", sequenceName = "SEQ_BPM_PROCESS", allocationSize = 1) @Column(name = "ID") public Long getId() { return id; }