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 index 4794123e..19fd6f9d 100644 --- a/src/main/java/cat/udl/eps/softarch/demo/domain/Schedule.java +++ b/src/main/java/cat/udl/eps/softarch/demo/domain/Schedule.java @@ -7,6 +7,7 @@ import lombok.Data; import lombok.EqualsAndHashCode; +import java.time.LocalDateTime; import java.util.Date; @Entity @@ -18,10 +19,10 @@ public class Schedule extends UriEntity { private Long id; @NotNull - private Date start; + private LocalDateTime start; @NotNull - private Date finish; + private LocalDateTime finish; @ManyToOne public Shelter available;