From 16bd5cc4a6523388c3130dc943c929d6e64484b3 Mon Sep 17 00:00:00 2001 From: Sebastian Jitaru Date: Wed, 21 Feb 2024 17:49:46 +0100 Subject: [PATCH] Getters removed --- .../cat/udl/eps/softarch/demo/domain/Shelter.java | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) 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;