diff --git a/src/main/java/cat/udl/eps/softarch/demo/domain/Schedule.java b/src/main/java/cat/udl/eps/softarch/demo/domain/Schedule.java new file mode 100644 index 00000000..bd3537d3 --- /dev/null +++ b/src/main/java/cat/udl/eps/softarch/demo/domain/Schedule.java @@ -0,0 +1,24 @@ +package cat.udl.eps.softarch.demo.domain; + +import jakarta.persistence.Entity; +import jakarta.persistence.Id; +import jakarta.validation.constraints.NotNull; +import lombok.Data; +import lombok.EqualsAndHashCode; + +import java.util.Date; + +@Entity +@Data +@EqualsAndHashCode(callSuper = true) +public class Schedule extends UriEntity { + + @Id + private Long id; + + @NotNull + private Date start; + + @NotNull + private Date finish; +}