@Entity @Immutable @Table(name = "srecur") @Getter @Setter @ToString public class LRecurringSchedule extends AbstractSpaceRelatedEntity { @Column(name = "rectype", nullable = false) @Enumerated(EnumType.ORDINAL) @NotNull RecurTypeEnum recurType; @Column String days; @Column @JsonIgnore LocalDate end; public LRecurringSchedule() { } public LRecurringSchedule(Long id, RecurTypeEnum type, String days, LocalDate end) { this.id = id; this.recurType = type; this.days = days; this.end = end; } }