X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=portal-BE%2Fsrc%2Fmain%2Fjava%2Forg%2Fonap%2Fportal%2Fdomain%2Fdb%2Fcr%2FCrReportEmailSentLog.java;h=7a63890d1030c1e0827e461792c315b0fc9768f4;hb=ffd9af970318c1f5a0bad46d7aad5d4611414aae;hp=cb36395bce479e415768adf155f3ff33f6198724;hpb=2506c3fe8066bcc9d78e0802e1f539527cb29edc;p=portal.git diff --git a/portal-BE/src/main/java/org/onap/portal/domain/db/cr/CrReportEmailSentLog.java b/portal-BE/src/main/java/org/onap/portal/domain/db/cr/CrReportEmailSentLog.java index cb36395b..7a63890d 100644 --- a/portal-BE/src/main/java/org/onap/portal/domain/db/cr/CrReportEmailSentLog.java +++ b/portal-BE/src/main/java/org/onap/portal/domain/db/cr/CrReportEmailSentLog.java @@ -40,13 +40,12 @@ package org.onap.portal.domain.db.cr; +import java.io.Serializable; import java.time.LocalDateTime; import javax.persistence.CascadeType; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.FetchType; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.Index; import javax.persistence.JoinColumn; @@ -89,7 +88,7 @@ CREATE TABLE `cr_report_email_sent_log` ( @Getter @Setter @Entity -public class CrReportEmailSentLog { +public class CrReportEmailSentLog implements Serializable { @Id @Column(name = "log_id", nullable = false) @Digits(integer = 11, fraction = 0) @@ -104,7 +103,7 @@ public class CrReportEmailSentLog { @SafeHtml @NotNull private String genKey; - @ManyToOne(cascade = CascadeType.ALL, fetch = FetchType.LAZY) + @ManyToOne(cascade = CascadeType.MERGE, fetch = FetchType.LAZY) @JoinColumn(name = "rep_id", nullable = false) @NotNull @Valid