diff --git a/src/main/java/cat/udl/eps/softarch/demo/domain/Shelter.java b/src/main/java/cat/udl/eps/softarch/demo/domain/Shelter.java index 3465ec2..8fa75cb 100644 --- a/src/main/java/cat/udl/eps/softarch/demo/domain/Shelter.java +++ b/src/main/java/cat/udl/eps/softarch/demo/domain/Shelter.java @@ -2,6 +2,7 @@ import jakarta.persistence.Column; import jakarta.persistence.Entity; +import jakarta.validation.constraints.NotNull; import lombok.Data; import jakarta.persistence.Id; import jakarta.validation.constraints.Email; @@ -32,10 +33,10 @@ public class Shelter extends UriEntity { @Length(min=12, max=12) private String mobile; - @NotBlank + @NotNull private LocalDateTime createdAt; - @NotBlank + @NotNull private LocalDateTime updatedAt; @BooleanFlag