List of usage examples for javax.persistence GenerationType SEQUENCE
GenerationType SEQUENCE
To view the source code for javax.persistence GenerationType SEQUENCE.
Click Source Link
From source file:com.dhenton9000.birt.persistence.entities.ProductLines.java
/** * @return the id/*from w ww . j a v a 2 s. c o m*/ */ @Id @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "productlines_id_seq") @SequenceGenerator(name = "productlines_id_seq", sequenceName = "productlines_id_seq", allocationSize = 1) @Basic(optional = false) @Column(name = "ID", nullable = false) @ApiModelProperty(example = "1", required = true) public Integer getId() { return id; }
From source file:org.dspace.orm.entity.Bitstream.java
@Id @Column(name = "bitstream_id") @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "bitstream_gen") public int getID() { return id;// www . ja va 2 s .c o m }
From source file:de.micromata.genome.db.jpa.genomecore.chronos.JpaJobResultDO.java
@Column(name = "TA_CHRONOS_RESULT") @Id/*from w w w . ja v a2s .co m*/ @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "SQ_TA_CHRONOS_RESULT") @Override public Long getPk() { return pk; }
From source file:ch.systemsx.cisd.openbis.generic.shared.dto.EventPE.java
@Id @SequenceGenerator(name = SequenceNames.EVENT_SEQUENCE, sequenceName = SequenceNames.EVENT_SEQUENCE, allocationSize = 1) @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = SequenceNames.EVENT_SEQUENCE) public final Long getId() { return id;//w w w .j a va 2 s . c o m }
From source file:de.micromata.genome.db.jpa.genomecore.chronos.JpaTriggerJobDO.java
@Column(name = "TA_CHRONOS_JOB") @Id/* w ww. j av a 2 s . co m*/ @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "SQ_TA_CHRONOS_JOB") @Override public Long getPk() { return pk; }
From source file:ch.systemsx.cisd.openbis.generic.shared.dto.AuthorizationGroupPE.java
@SequenceGenerator(name = SequenceNames.AUTHORIZATION_GROUP_ID_SEQUENCE, sequenceName = SequenceNames.AUTHORIZATION_GROUP_ID_SEQUENCE, allocationSize = 1) @Id// w w w . j a va2s. c om @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = SequenceNames.AUTHORIZATION_GROUP_ID_SEQUENCE) public final Long getId() { return id; }
From source file:com.dhenton9000.birt.persistence.entities.OrderDetails.java
/** * @return the pid/*ww w . j av a2 s . com*/ */ @Id @Basic(optional = false) @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "orderdetails_pid_seq") @SequenceGenerator(name = "orderdetails_pid_seq", sequenceName = "orderdetails_pid_seq", allocationSize = 1) @Column(name = "PID", nullable = false) public Integer getPid() { return pid; }
From source file:ch.systemsx.cisd.openbis.generic.shared.dto.VocabularyTermPE.java
@SequenceGenerator(name = SequenceNames.CONTROLLED_VOCABULARY_TERM_SEQUENCE, sequenceName = SequenceNames.CONTROLLED_VOCABULARY_TERM_SEQUENCE, allocationSize = 1) @Id//from w ww . j a v a2s. co m @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = SequenceNames.CONTROLLED_VOCABULARY_TERM_SEQUENCE) public Long getId() { return id; }
From source file:ch.systemsx.cisd.openbis.generic.shared.dto.GroupPE.java
@SequenceGenerator(name = SequenceNames.GROUP_SEQUENCE, sequenceName = SequenceNames.GROUP_SEQUENCE, allocationSize = 1) @Id/*from w w w .j a v a 2 s. c om*/ @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = SequenceNames.GROUP_SEQUENCE) @Field(index = Index.NO, store = Store.YES) public final Long getId() { return id; }
From source file:edu.harvard.med.screensaver.model.AttachedFile.java
/** * Get the id for the attached file.//ww w .j a va 2 s.c o m * @return the id for the attached file */ @Id @org.hibernate.annotations.GenericGenerator(name = "attached_file_id_seq", strategy = "sequence", parameters = { @org.hibernate.annotations.Parameter(name = "sequence", value = "attached_file_id_seq") }) @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "attached_file_id_seq") public Integer getAttachedFileId() { return getEntityId(); }