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.dspace.orm.entity.WorkSpaceItem.java
@Id @Column(name = "workspace_item_id") @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "workspaceitem_gen") public int getID() { return id;/*www.j a va 2 s . com*/ }
From source file:org.dspace.orm.entity.Bundle.java
@Id @Column(name = "bundle_id") @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "bundle_gen") public int getID() { return id;/*from w w w.jav a 2 s . com*/ }
From source file:org.dspace.orm.entity.ResourcePolicy.java
@Id @Column(name = "policy_id") @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "resourcepolicy_gen") public int getID() { return id;// ww w . j av a2 s.c om }
From source file:org.dspace.orm.entity.Item.java
@Id @Column(name = "item_id") @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "item_gen") public int getID() { return id; }
From source file:ch.systemsx.cisd.openbis.generic.shared.dto.InvalidationPE.java
@Id @SequenceGenerator(name = SequenceNames.INVALIDATION_SEQUENCE, sequenceName = SequenceNames.INVALIDATION_SEQUENCE, allocationSize = 1) @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = SequenceNames.INVALIDATION_SEQUENCE) public final Long getId() { return id;/* w w w.j a va 2 s.co m*/ }
From source file:org.dspace.orm.entity.Eperson.java
@Id @Column(name = "eperson_id") @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "eperson_gen") public int getID() { return id;// w w w . j a v a 2 s .c o m }
From source file:org.dspace.orm.entity.Community.java
@Id @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "community_gen") @Column(name = "community_id", unique = true, nullable = false) public int getID() { return id;//from w w w. j av a 2 s.c o m }
From source file:org.dspace.orm.entity.EpersonGroup.java
@Id @Column(name = "eperson_group_id") @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "epersongroup_gen") public int getID() { return id;/*from w ww. j a v a 2 s .c o m*/ }
From source file:org.dspace.orm.entity.Collection.java
@Id @Column(name = "collection_id") @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "collection_gen") public int getID() { return id;//from www. j a va2 s .c o m }
From source file:ch.systemsx.cisd.openbis.generic.shared.dto.DataTypePE.java
@SequenceGenerator(name = SequenceNames.DATA_TYPE_SEQUENCE, sequenceName = SequenceNames.DATA_TYPE_SEQUENCE, allocationSize = 1) @Id/*from w w w.ja v a2s . co m*/ @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = SequenceNames.DATA_TYPE_SEQUENCE) public final Long getId() { return id; }