summaryrefslogtreecommitdiffstats
path: root/ecomp-portal-BE-common/src
diff options
context:
space:
mode:
authorSunder Tattavarada <statta@research.att.com>2019-06-14 17:31:05 +0000
committerGerrit Code Review <gerrit@onap.org>2019-06-14 17:31:05 +0000
commit9f45f60932b17364ade24f29c7831bd3ef757bc5 (patch)
treefd13da80c5069979b8a8a7337e1e0d9c2fa49a3a /ecomp-portal-BE-common/src
parentc56b27404151b0d283cd16f7c5311ee4fb67936f (diff)
parent2bf888ea77e56b00e4638a1fe80289f09f2bfec6 (diff)
Merge "FavoritesFunctionalMenuItem class DB constraints"
Diffstat (limited to 'ecomp-portal-BE-common/src')
-rw-r--r--ecomp-portal-BE-common/src/main/java/org/onap/portalapp/portal/transport/FavoritesFunctionalMenuItem.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/ecomp-portal-BE-common/src/main/java/org/onap/portalapp/portal/transport/FavoritesFunctionalMenuItem.java b/ecomp-portal-BE-common/src/main/java/org/onap/portalapp/portal/transport/FavoritesFunctionalMenuItem.java
index 57f65379..493e57fa 100644
--- a/ecomp-portal-BE-common/src/main/java/org/onap/portalapp/portal/transport/FavoritesFunctionalMenuItem.java
+++ b/ecomp-portal-BE-common/src/main/java/org/onap/portalapp/portal/transport/FavoritesFunctionalMenuItem.java
@@ -43,6 +43,7 @@ import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
+import javax.validation.constraints.Digits;
/**
@@ -55,9 +56,11 @@ public class FavoritesFunctionalMenuItem implements Serializable {
@Id
@Column(name = "user_id")
+ @Digits(integer = 11, fraction = 0)
public Long userId;
@Id
@Column(name = "menu_id")
+ @Digits(integer = 11, fraction = 0)
public Long menuId;
}