Skip to content

Commit

Permalink
Merge pull request #38 from UdL-EPS-SoftArch/crud-Schedule
Browse files Browse the repository at this point in the history
Crud-Schedule + Repository + Relation
  • Loading branch information
elskater98 authored Feb 29, 2024
2 parents cdd4a22 + 8b86598 commit 98dcfad
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/java/cat/udl/eps/softarch/demo/domain/Schedule.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;
import java.util.Date;

@Entity
Expand All @@ -18,10 +19,10 @@ public class Schedule extends UriEntity<Long> {
private Long id;

@NotNull
private Date start;
private LocalDateTime start;

@NotNull
private Date finish;
private LocalDateTime finish;

@ManyToOne
public Shelter available;
Expand Down

0 comments on commit 98dcfad

Please sign in to comment.