diff options
author | Sunder Tattavarada <statta@research.att.com> | 2019-06-17 21:25:21 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-06-17 21:25:21 +0000 |
commit | d9a26e7fe8c2dfee2ea43ae697278e11f10f31e9 (patch) | |
tree | 39677a44e6a63567b2abb1701f099f471bb67e0d | |
parent | fd64af5e46b31e731e3e9e11b037361b0a73d965 (diff) | |
parent | 432a7933d2eab36d95b54e4a9d09a153144cdd76 (diff) |
Merge "PortalAdminUserRole class DB constraints"
-rw-r--r-- | ecomp-portal-BE-common/src/main/java/org/onap/portalapp/portal/transport/PortalAdminUserRole.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ecomp-portal-BE-common/src/main/java/org/onap/portalapp/portal/transport/PortalAdminUserRole.java b/ecomp-portal-BE-common/src/main/java/org/onap/portalapp/portal/transport/PortalAdminUserRole.java index 01cc6941..dd0142c9 100644 --- a/ecomp-portal-BE-common/src/main/java/org/onap/portalapp/portal/transport/PortalAdminUserRole.java +++ b/ecomp-portal-BE-common/src/main/java/org/onap/portalapp/portal/transport/PortalAdminUserRole.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; /** * This is to handle portal admins @@ -54,13 +55,16 @@ public class PortalAdminUserRole implements Serializable{ @Id @Column(name = "user_id") + @Digits(integer = 10, fraction = 0) public Long userId; @Id @Column(name = "role_id") + @Digits(integer = 10, fraction = 0) public Long roleId; @Column(name = "app_id") + @Digits(integer = 11, fraction = 0) public Long appId; } |