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 ecd02ee6..531b1f46 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 @@ -3,11 +3,14 @@ import jakarta.persistence.*; import jakarta.validation.constraints.Email; import jakarta.validation.constraints.NotBlank; +import jakarta.validation.constraints.NotNull; import jakarta.validation.constraints.PastOrPresent; import lombok.Data; import lombok.EqualsAndHashCode; +import java.time.LocalDateTime; + @Entity @Table(name = "Shelter") @Data @@ -30,18 +33,6 @@ public class Shelter extends UriEntity { @Column(unique = true) private String mobile; - public String getEmail() { - return email; - } - - public Integer getId() { - return id; - } - - public String getMobile() { - return mobile; - } - @PastOrPresent @NotNull private LocalDateTime createdAt;