summaryrefslogtreecommitdiffstats
path: root/ecomp-portal-BE-common/src
diff options
context:
space:
mode:
authorManoop Talasila <talasila@research.att.com>2019-07-09 15:28:20 +0000
committerGerrit Code Review <gerrit@onap.org>2019-07-09 15:28:20 +0000
commit46f28897cbaadcfc54c759a2ca12dc4e318b79c4 (patch)
tree95c2f239df3a59ec69aa0ea63c1bb88893252709 /ecomp-portal-BE-common/src
parentb436ad77af84bab4af0dd93a0190b36065c9950f (diff)
parente8bffd119fd2dcd3b9389087e51772d9a38f912e (diff)
Merge "EpRoleNotificationItem 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/EpRoleNotificationItem.java53
1 files changed, 12 insertions, 41 deletions
diff --git a/ecomp-portal-BE-common/src/main/java/org/onap/portalapp/portal/transport/EpRoleNotificationItem.java b/ecomp-portal-BE-common/src/main/java/org/onap/portalapp/portal/transport/EpRoleNotificationItem.java
index bda65401..b258ab0d 100644
--- a/ecomp-portal-BE-common/src/main/java/org/onap/portalapp/portal/transport/EpRoleNotificationItem.java
+++ b/ecomp-portal-BE-common/src/main/java/org/onap/portalapp/portal/transport/EpRoleNotificationItem.java
@@ -2,7 +2,7 @@
* ============LICENSE_START==========================================
* ONAP Portal
* ===================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
+ * Copyright (C) 2019 AT&T Intellectual Property. All rights reserved.
* ===================================================================
*
* Unless otherwise specified, all software contained herein is licensed
@@ -44,65 +44,36 @@ import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
+import javax.validation.constraints.Digits;
+import lombok.Getter;
+import lombok.NoArgsConstructor;
+import lombok.Setter;
import org.onap.portalsdk.core.domain.support.DomainVo;
@Entity
@Table(name="ep_role_notification")
+@NoArgsConstructor
+@Getter
+@Setter
public class EpRoleNotificationItem extends DomainVo {
- public EpRoleNotificationItem(){};
-
private static final long serialVersionUID = 1L;
@Id
@GeneratedValue(strategy=GenerationType.IDENTITY)
@Column(name = "ID")
+ @Digits(integer = 11, fraction = 0)
public Long id;
@Column(name = "notification_ID")
+ @Digits(integer = 11, fraction = 0)
public Long notificationId;
@Column(name = "role_ID")
+ @Digits(integer = 11, fraction = 0)
public Integer roleId;
@Column(name = "recv_user_id")
+ @Digits(integer = 11, fraction = 0)
public Integer RecvUserId;
-
- public Long getId() {
- return id;
- }
-
- public void setId(Long id) {
- this.id = id;
- }
-
- public Long getNotificationId() {
- return notificationId;
- }
-
- public void setNotificationId(Long notificationId) {
- this.notificationId = notificationId;
- }
-
- public Integer getRoleId() {
- return roleId;
- }
-
- public void setRoleId(Integer roleId) {
- this.roleId = roleId;
- }
-
- public static long getSerialversionuid() {
- return serialVersionUID;
- }
-
- public Integer getRecvUserId() {
- return RecvUserId;
- }
-
- public void setRecvUserId(Integer recvUserId) {
- RecvUserId = recvUserId;
- }
-
-
}