summaryrefslogtreecommitdiffstats
path: root/ecomp-portal-BE-common/src
diff options
context:
space:
mode:
Diffstat (limited to 'ecomp-portal-BE-common/src')
-rw-r--r--ecomp-portal-BE-common/src/main/java/org/onap/portalapp/portal/domain/SharedContext.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/ecomp-portal-BE-common/src/main/java/org/onap/portalapp/portal/domain/SharedContext.java b/ecomp-portal-BE-common/src/main/java/org/onap/portalapp/portal/domain/SharedContext.java
index 14837dbf..729540cf 100644
--- a/ecomp-portal-BE-common/src/main/java/org/onap/portalapp/portal/domain/SharedContext.java
+++ b/ecomp-portal-BE-common/src/main/java/org/onap/portalapp/portal/domain/SharedContext.java
@@ -43,6 +43,7 @@ import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
+import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.validation.constraints.Digits;
@@ -69,7 +70,8 @@ public class SharedContext extends DomainVo {
private static final long serialVersionUID = 7287469622586677888L;
@Id
- @GeneratedValue(strategy = GenerationType.AUTO)
+ @SequenceGenerator(name="portal_generator", sequenceName = "portal_generator", initialValue = 1000)
+ @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "portal_generator")
@Digits(integer = 11, fraction = 0)
private Long id;