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:org.openhie.openempi.model.Dataset.java
@Id @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "dataset_seq") @Column(name = "dataset_id", unique = true, nullable = false) public Integer getDatasetId() { return datasetId; }
From source file:org.openhie.openempi.model.Key.java
@Id @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "key_seq") @Column(name = "id", unique = true, nullable = false) public Long getId() { return this.id; }
From source file:org.openhie.openempi.model.MatchPairStat.java
@Id @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "match_pair_stat_seq") @Column(name = "match_pair_stat_id", unique = true, nullable = false) public Long getMatchPairStatId() { return matchPairStatId; }
From source file:org.openhie.openempi.model.MatchPairStatHalf.java
@Id @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "match_pair_stat_half_seq") @Column(name = "match_pair_stat_half_id", unique = true, nullable = false) public Long getMatchPairStatHalfId() { return matchPairStatHalfId; }
From source file:org.openhie.openempi.model.PersonMatch.java
@Id @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "person_match_seq") @Column(name = "person_match_id", unique = true, nullable = false) public Integer getPersonMatchId() { return this.personMatchId; }
From source file:org.openhie.openempi.model.PersonMatchRequest.java
@Id @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "person_match_request_seq") @Column(name = "person_match_request_id", unique = true, nullable = false) public Integer getPersonMatchRequestId() { return this.personMatchRequestId; }
From source file:org.openhie.openempi.model.Salt.java
@Id @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "salt_seq") @Column(name = "id", unique = true, nullable = false) public Long getId() { return this.id; }
From source file:ru.anr.base.domain.BaseEntity.java
/** * @return the id/*from w w w . j a v a2s .c o m*/ */ @Id @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "hseq") @SequenceGenerator(name = "hseq", allocationSize = 50) @Column(name = "id") public Long getId() { return id; }
From source file:sk.lazyman.gizmo.data.User.java
@Id @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "user_id") @SequenceGenerator(name = "user_id", sequenceName = "g_user_id_seq", allocationSize = 1, initialValue = 40000) public Integer getId() { return id;//from w ww.j a v a2 s . c o m }