Skip to content

Commit

Permalink
Creation date and updated date made auto
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastianJitaru29 committed Mar 6, 2024
1 parent 322bd7d commit a0bd115
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/cat/udl/eps/softarch/demo/domain/Shelter.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,12 @@ public class Shelter extends UriEntity<Long> {
private String mobile;

@PastOrPresent
@GeneratedValue(strategy = GenerationType.AUTO)
@NotNull
private ZonedDateTime createdAt;

@PastOrPresent
@GeneratedValue(strategy = GenerationType.AUTO)
private ZonedDateTime updatedAt;

@NotNull
Expand Down

0 comments on commit a0bd115

Please sign in to comment.