summaryrefslogtreecommitdiffstats
path: root/ecomp-portal-BE-common/src
diff options
context:
space:
mode:
authorManoop Talasila <talasila@research.att.com>2019-07-09 15:29:07 +0000
committerGerrit Code Review <gerrit@onap.org>2019-07-09 15:29:07 +0000
commit67cd727b3eaa24964a441cb60a18b44d3710a441 (patch)
treef6224d5141b7a6f20d36a3fe3ebf329ec52261f3 /ecomp-portal-BE-common/src
parent799233f2623d20f9982253c752e6bd20d61317eb (diff)
parenta8d8fd9d5c8dbfa166c85d2a97184dea9cbcff69 (diff)
Merge "FavoritesFunctionalMenuItemJson 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/FavoritesFunctionalMenuItemJson.java14
1 files changed, 8 insertions, 6 deletions
diff --git a/ecomp-portal-BE-common/src/main/java/org/onap/portalapp/portal/transport/FavoritesFunctionalMenuItemJson.java b/ecomp-portal-BE-common/src/main/java/org/onap/portalapp/portal/transport/FavoritesFunctionalMenuItemJson.java
index 71004cc4..1c444a9f 100644
--- a/ecomp-portal-BE-common/src/main/java/org/onap/portalapp/portal/transport/FavoritesFunctionalMenuItemJson.java
+++ b/ecomp-portal-BE-common/src/main/java/org/onap/portalapp/portal/transport/FavoritesFunctionalMenuItemJson.java
@@ -44,7 +44,7 @@ import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
-
+import javax.validation.constraints.Digits;
/**
@@ -55,21 +55,23 @@ import javax.persistence.Transient;
public class FavoritesFunctionalMenuItemJson implements Serializable {
private static final long serialVersionUID = 1L;
-
+
@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;
-
+
@Column(name = "text")
public String text;
-
+
@Column(name = "url")
public String url;
-
+
@Transient
public Boolean restrictedApp;
}