Java Code Examples for javax.persistence.GenerationType#SEQUENCE
The following examples show how to use
javax.persistence.GenerationType#SEQUENCE .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: MyEntity.java From quarkus with Apache License 2.0 | 6 votes |
@Id @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "myEntitySeq") public long getId() { return id; }
Example 2
Source File: ContentProjectHistoryEntry.java From uyuni with GNU General Public License v2.0 | 5 votes |
/** * Gets the id. * * @return id */ @Id @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "content_project_history_seq") @SequenceGenerator(name = "content_project_history_seq", sequenceName = "suse_ct_prj_hist_seq", allocationSize = 1) public Long getId() { return id; }
Example 3
Source File: Classes.java From sample-java-spring-genericdao with Apache License 2.0 | 5 votes |
@Id @Column(name = "CLASSES_ID", unique = true, nullable = false) @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "SEQ_CLASSES_ID") @SequenceGenerator(name = "SEQ_CLASSES_ID", sequenceName = "SEQ_CLASSES_ID", allocationSize=1, initialValue=1) public Integer getId() { return this.id; }
Example 4
Source File: ImageStoreType.java From uyuni with GNU General Public License v2.0 | 5 votes |
/** * @return the id */ @Id @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "imgstoretype_seq") @SequenceGenerator(name = "imgstoretype_seq", sequenceName = "suse_imgstore_type_id_seq", allocationSize = 1) public Long getId() { return id; }
Example 5
Source File: ImageProfile.java From uyuni with GNU General Public License v2.0 | 5 votes |
/** * @return the profileId */ @Id @Column(name = "profile_id") @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "imgprof_seq") @SequenceGenerator(name = "imgprof_seq", sequenceName = "suse_imgprof_prid_seq", allocationSize = 1) public Long getProfileId() { return profileId; }
Example 6
Source File: File.java From PhotoAlbum-api with MIT License | 5 votes |
@Id @Column(name = "id") @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "files_seq") @SequenceGenerator(name = "files_seq", sequenceName = "files_seq", allocationSize = 1) public Long getId() { return this.id; }
Example 7
Source File: VirtualHostManagerNodeInfo.java From uyuni with GNU General Public License v2.0 | 5 votes |
/** * @return the id */ @Id @Column(name = "id") @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "vhmnodeinfo_seq") @SequenceGenerator(name = "vhmnodeinfo_seq", sequenceName = "suse_vhm_nodeinfo_id_seq") public Long getId() { return id; }
Example 8
Source File: ContentEnvironment.java From uyuni with GNU General Public License v2.0 | 5 votes |
/** * @return the id */ @Id @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "content_env_seq") @SequenceGenerator(name = "content_env_seq", sequenceName = "suse_ct_env_seq", allocationSize = 1) public Long getId() { return id; }
Example 9
Source File: Student.java From sample-java-spring-genericdao with Apache License 2.0 | 5 votes |
@Id @Column(name = "STUDENT_ID", unique = true, nullable = false) @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "SEQ_STUDENT_ID") @SequenceGenerator(name = "SEQ_STUDENT_ID", sequenceName = "SEQ_STUDENT_ID", allocationSize=1, initialValue=1) //@org.hibernate.annotations.GenericGenerator(name="SEQ_STUDENT_ID", strategy = "sequence", parameters = { @org.hibernate.annotations.Parameter(name="sequence", value="SEQ_STUDENT_ID") } ) public Integer getId() { return this.id; }
Example 10
Source File: User.java From Cerberus with MIT License | 5 votes |
@Id @Column(name = "id") @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "users_seq") @SequenceGenerator(name = "users_seq", sequenceName = "users_seq", allocationSize = 1) public Long getId() { return this.id; }
Example 11
Source File: ImageBuildHistory.java From uyuni with GNU General Public License v2.0 | 5 votes |
/** * @return the id */ @Id @Column(name = "id") @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "imgbuildhistory_seq") @SequenceGenerator(name = "imgbuildhistory_seq", sequenceName = "suse_img_buildhistory_id_seq") public Long getId() { return id; }
Example 12
Source File: Album.java From PhotoAlbum-api with MIT License | 5 votes |
@Id @Column(name = "id") @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "albums_seq") @SequenceGenerator(name = "albums_seq", sequenceName = "albums_seq", allocationSize = 1) public Long getId() { return this.id; }
Example 13
Source File: EnvironmentTarget.java From uyuni with GNU General Public License v2.0 | 5 votes |
/** * Gets the id. * * @return id */ @Id @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "content_prj_env_target_seq") @SequenceGenerator(name = "content_prj_env_target_seq", sequenceName = "suse_ct_env_tgt_seq", allocationSize = 1) public Long getId() { return id; }
Example 14
Source File: ProjectSource.java From uyuni with GNU General Public License v2.0 | 5 votes |
/** * Gets the id. * * @return id */ @Id @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "content_prj_src_seq") @SequenceGenerator(name = "content_prj_src_seq", sequenceName = "suse_ct_prj_src_seq", allocationSize = 1) public Long getId() { return id; }
Example 15
Source File: PackageExtraTagsKeys.java From uyuni with GNU General Public License v2.0 | 5 votes |
/** * @return id to get */ @Id @Column(name = "id") @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "pkgxtratagkeys_seq") @SequenceGenerator(name = "pkgxtratagkeys_seq", sequenceName = "rhn_package_extra_tags_keys_id_seq", allocationSize = 1) public Long getId() { return id; }
Example 16
Source File: JobData.java From scheduling with GNU Affero General Public License v3.0 | 5 votes |
@Id @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "JOBID_SEQUENCE") @SequenceGenerator(name = "JOBID_SEQUENCE", sequenceName = "JOBID_SEQUENCE", allocationSize = 1, initialValue = 1) @Column(name = "ID") public Long getId() { return id; }
Example 17
Source File: SUSEProductSCCRepository.java From uyuni with GNU General Public License v2.0 | 5 votes |
/** * @return Returns the id. */ @Id @Column(name = "id") @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "prdrepo_seq") @SequenceGenerator(name = "prdrepo_seq", sequenceName = "suse_prdrepo_id_seq", allocationSize = 1) public Long getId() { return id; }
Example 18
Source File: Photo.java From PhotoAlbum-api with MIT License | 5 votes |
@Id @Column(name = "id") @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "photos_seq") @SequenceGenerator(name = "photos_seq", sequenceName = "photos_seq", allocationSize = 1) public Long getId() { return this.id; }
Example 19
Source File: Cake.java From quarkus with Apache License 2.0 | 4 votes |
@Id @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "cakeSeq") public Long getId() { return id; }
Example 20
Source File: Person.java From quarkus with Apache License 2.0 | 4 votes |
@Id @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "personSeq") public long getId() { return id; }