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.Embeddable;
import javax.validation.constraints.Positive;
import javax.validation.constraints.Size;
import lombok.AllArgsConstructor;
-import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
})
@NoArgsConstructor
@AllArgsConstructor
-@EqualsAndHashCode
+
@Getter
@Setter
@Entity
@SafeHtml
@NotNull
private String title;
- @Column(name = "descr", length = 255, columnDefinition = "varchar(255) DEFAULT NULL")
+ @Column(name = "descr", columnDefinition = "varchar(255) DEFAULT NULL")
@Size(max = 255)
@SafeHtml
private String descr;
cascade = CascadeType.ALL,
fetch = FetchType.LAZY
)
- private List<CrReportSchedule> crReportSchedules = new ArrayList<>();
+ private Set<CrReportSchedule> crReportSchedules;
@OneToMany(
targetEntity = CrReportAccess.class,
mappedBy = "repId",
cascade = CascadeType.ALL,
fetch = FetchType.LAZY
)
- private List<CrReportAccess> crReportAccesses = new ArrayList<>();
+ private Set<CrReportAccess> crReportAccesses;
@OneToMany(
targetEntity = CrReportLog.class,
mappedBy = "repId",
cascade = CascadeType.ALL,
fetch = FetchType.LAZY
)
- private List<CrReportLog> crReportLogs = new ArrayList<>();
+ private Set<CrReportLog> crReportLogs;
@OneToMany(
targetEntity = CrReportEmailSentLog.class,
mappedBy = "repId",
cascade = CascadeType.ALL,
fetch = FetchType.LAZY
)
- private List<CrReportEmailSentLog> crReportEmailSentLogs = new ArrayList<>();
+ private Set<CrReportEmailSentLog> crReportEmailSentLogs;
@OneToMany(
targetEntity = CrReportFileHistory.class,
mappedBy = "repId",
cascade = CascadeType.ALL,
fetch = FetchType.LAZY
)
- private List<CrReportFileHistory> crReportFileHistories = new ArrayList<>();
+ private Set<CrReportFileHistory> crReportFileHistories;
}