package org.onap.portal.domain.db.cr;
+import java.io.Serializable;
import java.time.LocalDateTime;
import javax.persistence.CascadeType;
import javax.persistence.Column;
@Getter
@Setter
@Entity
-public class CrReportEmailSentLog {
+public class CrReportEmailSentLog implements Serializable {
@Id
@Column(name = "log_id", nullable = false)
@Digits(integer = 11, fraction = 0)
@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