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:velo.entity.EmailTemplate.java
/** @return the emailTemplateId/* w w w . j a v a 2 s.c o m*/ */ //GF@Id //GF@SequenceGenerator(name="IDM_EMAIL_TEMPLATE_GEN",sequenceName="IDM_EMAIL_TEMPLATE_SEQ", allocationSize=1) //GF@GeneratedValue(strategy = GenerationType.SEQUENCE, generator="IDM_EMAIL_TEMPLATE_GEN") @Id @GeneratedValue(strategy = GenerationType.AUTO, generator = "EmailTemplateIdSeq") //@GeneratedValue //JB @Column(name = "EMAIL_TEMPLATE_ID") public Long getEmailTemplateId() { return emailTemplateId; }
From source file:edu.scripps.fl.pubchem.db.PCAssayResult.java
@Id @Column(name = "result_id") @GeneratedValue(strategy = GenerationType.AUTO) public Long getId() { return id; }
From source file:edu.scripps.fl.curves.Curve.java
@Id @Column(name = "id") @GeneratedValue(strategy = GenerationType.AUTO) public Long getId() { return id; }
From source file:de.pro.dbw.file.reflection.api.ReflectionModel.java
@Id @GeneratedValue(strategy = GenerationType.AUTO) @Column(name = REFLECTION_MODEL__COLUMN_NAME__ID) public long getId() { if (idProperty == null) { return _id; } else {/* w w w . j a v a2s . co m*/ return idProperty.getValue(); } }
From source file:ru.runa.wfe.task.Task.java
@Id @GeneratedValue(strategy = GenerationType.AUTO, generator = "sequence") @SequenceGenerator(name = "sequence", sequenceName = "SEQ_BPM_TASK", allocationSize = 1) @Column(name = "ID") public Long getId() { return id;/*from www .j a va2 s. c om*/ }
From source file:ru.runa.wfe.execution.Token.java
@Id @GeneratedValue(strategy = GenerationType.AUTO, generator = "sequence") @SequenceGenerator(name = "sequence", sequenceName = "SEQ_BPM_TOKEN", allocationSize = 1) @Column(name = "ID") public Long getId() { return id;/*w w w. ja v a 2 s . c om*/ }
From source file:org.tonguetied.keywordmanagement.Translation.java
@Id @GeneratedValue(strategy = GenerationType.AUTO, generator = "translation_generator") @SequenceGenerator(name = "translation_generator", sequenceName = "translation_id_seq") @Column(name = COL_ID)//from ww w . j a v a 2s.co m public Long getId() { return id; }
From source file:edu.nps.moves.mmowgli.db.Pages.java
/**********************************************************************/ @Id/*from w ww . ja v a 2s . c o m*/ @GeneratedValue(strategy = GenerationType.AUTO) @Column(nullable = false) public long getId() { return id; }
From source file:uk.nhs.cfh.dsp.snomed.mrcm.om.impl.MRCMConstraintImpl.java
/** * Gets the id. * * @return the id */ @Id @GeneratedValue(strategy = GenerationType.AUTO) public long getId() { return id; }
From source file:org.tonguetied.usermanagement.User.java
@Id @GeneratedValue(strategy = GenerationType.AUTO, generator = "user_generator") @SequenceGenerator(name = "user_generator", sequenceName = "internal_user_id_seq") @Column(name = COL_ID)//from w w w. j av a2 s.co m public Long getId() { return id; }