Skip to content

Commit

Permalink
FIXED NotBlank to NotNull
Browse files Browse the repository at this point in the history
  • Loading branch information
LordDangerous committed Feb 28, 2024
1 parent f6f4748 commit 4b76849
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/Shelter.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -32,10 +33,10 @@ public class Shelter extends UriEntity<Long> {
@Length(min=12, max=12)
private String mobile;

@NotBlank
@NotNull
private LocalDateTime createdAt;

@NotBlank
@NotNull
private LocalDateTime updatedAt;

@BooleanFlag
Expand Down

0 comments on commit 4b76849

Please sign in to comment.