X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=portal-BE%2Fsrc%2Fmain%2Fjava%2Forg%2Fonap%2Fportal%2Fdomain%2Fdb%2Fep%2FEpNotification.java;h=424f61b828279a1939b34917a8cb01b14d115171;hb=0dd6f1189815079526c3f5211f01650bbe5e665b;hp=ab1bf73c98120107ceb7d7f0cdb643f02a8b47e9;hpb=7ce177cd99096772ff42ef89d8820070c687fd9b;p=portal.git diff --git a/portal-BE/src/main/java/org/onap/portal/domain/db/ep/EpNotification.java b/portal-BE/src/main/java/org/onap/portal/domain/db/ep/EpNotification.java index ab1bf73c..424f61b8 100644 --- a/portal-BE/src/main/java/org/onap/portal/domain/db/ep/EpNotification.java +++ b/portal-BE/src/main/java/org/onap/portal/domain/db/ep/EpNotification.java @@ -40,9 +40,9 @@ package org.onap.portal.domain.db.ep; +import java.io.Serializable; import java.time.LocalDateTime; -import java.util.ArrayList; -import java.util.List; +import java.util.Set; import javax.persistence.CascadeType; import javax.persistence.Column; import javax.persistence.Entity; @@ -89,10 +89,10 @@ CREATE TABLE `ep_notification` ( @Getter @Setter @Entity -public class EpNotification { +public class EpNotification implements Serializable { @Id @GeneratedValue(strategy = GenerationType.AUTO) - @Column(name = "notification_ID", length = 11, nullable = false, columnDefinition = "int(11) AUTO_INCREMENT") + @Column(name = "notification_ID", length = 11, nullable = false) @Digits(integer = 11, fraction = 0) private Long notificationID; @Column(name = "is_for_online_users", length = 1, columnDefinition = "char(1) default 'N'") @@ -148,12 +148,12 @@ public class EpNotification { cascade = CascadeType.ALL, fetch = FetchType.LAZY ) - private List epRoleNotifications = new ArrayList<>(); + private Set epRoleNotifications; @OneToMany( targetEntity = EpUserNotification.class, mappedBy = "notificationId", cascade = CascadeType.ALL, fetch = FetchType.LAZY ) - private List epUserNotifications = new ArrayList<>(); + private Set epUserNotifications; }