package org.onap.portal.domain.db.ep;
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;
public class EpNotification {
@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'")
cascade = CascadeType.ALL,
fetch = FetchType.LAZY
)
- private List<EpRoleNotification> epRoleNotifications = new ArrayList<>();
+ private Set<EpRoleNotification> epRoleNotifications;
@OneToMany(
targetEntity = EpUserNotification.class,
mappedBy = "notificationId",
cascade = CascadeType.ALL,
fetch = FetchType.LAZY
)
- private List<EpUserNotification> epUserNotifications = new ArrayList<>();
+ private Set<EpUserNotification> epUserNotifications;
}