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:no.abmu.questionnarie.domain.MainReportSchema.java
/** * @return//w w w. j a va 2 s . c om * @hibernate.id generator-class="increment" */ @Id @GeneratedValue(strategy = GenerationType.AUTO) public Long getId() { return super.getId(); }
From source file:de.pro.dbw.file.tipofthenight.api.TipOfTheNightModel.java
@Id @GeneratedValue(strategy = GenerationType.AUTO) @Column(name = TIP_OF_THE_NIGHT_MODEL__COLUMN_NAME__ID) public long getId() { if (this.idProperty == null) { return _id; } else {//from w w w .ja va 2 s. c o m return idProperty.get(); } }
From source file:com.hongqiang.shop.modules.cms.entity.Article.java
@Id @GeneratedValue(strategy = GenerationType.AUTO) // @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "seq_cms_article") // @SequenceGenerator(name = "seq_cms_article", sequenceName = "seq_cms_article") public Long getId() { return id;//from w w w. ja v a 2s . co m }
From source file:com.hongqiang.shop.modules.sys.entity.Role.java
@Id @GeneratedValue(strategy = GenerationType.AUTO) // @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "seq_sys_role") // @SequenceGenerator(name = "seq_sys_role", sequenceName = "seq_sys_role") public Long getId() { return id;/*from www .j a v a 2 s . c o m*/ }
From source file:edu.uiowa.icts.bluebutton.domain.ClinicalDocument.java
/*****clinicalDocumentId*****/ @javax.persistence.SequenceGenerator(name = "gen", sequenceName = "bluebutton.seqnum", allocationSize = 1) @Id/*from w ww . ja va 2 s . co m*/ @GeneratedValue(strategy = GenerationType.AUTO, generator = "gen") @Column(name = "clinical_document_id", unique = true, nullable = false) public Integer getClinicalDocumentId() { return clinicalDocumentId; }
From source file:de.terrestris.shogun.model.BaseModel.java
@Id @GeneratedValue(strategy = GenerationType.AUTO) @Column(name = "ID", nullable = false) public int getId() { return this.id; }
From source file:edu.uiowa.icts.bluebutton.domain.Person.java
@Id @Column(name = "person_id", unique = true, nullable = false) @GeneratedValue(strategy = GenerationType.AUTO, generator = "gen") @javax.persistence.SequenceGenerator(name = "gen", sequenceName = "bluebutton.seqnum", allocationSize = 1) public Integer getPersonId() { return personId; }
From source file:org.tonguetied.audit.AuditLogRecord.java
/** * @return the the unique identifier for this record *///ww w . ja v a 2s . co m @Id @GeneratedValue(strategy = GenerationType.AUTO, generator = "audit_log_record_generator") @SequenceGenerator(name = "audit_log_record_generator", sequenceName = "audit_log_record_id_seq") @Column(name = COL_ID) public Long getId() { return id; }
From source file:com.leatherswan.artisticendeavors.jpa.model.Product.java
@Id @Column(name = "product_id") @GeneratedValue(strategy = GenerationType.AUTO) public Long getId() { return id; }
From source file:org.openmrs.contrib.metadatarepository.model.User.java
@Id @GeneratedValue(strategy = GenerationType.AUTO) @SearchableId(name = "id") public Long getId() { return id; }