diff options
| author | realtradam <[email protected]> | 2024-07-15 22:20:09 -0400 |
|---|---|---|
| committer | realtradam <[email protected]> | 2024-07-15 22:20:09 -0400 |
| commit | b1581ed1046f4aef077aea4fe6a1b01e599125d2 (patch) | |
| tree | 73e887083219b7b7c5eda1919628692b76f2a372 /src/main/java/com/blog/web/models/UserEntity.java | |
| parent | 1d8b48dfab6d1de72c841d309732c6da3bc6136c (diff) | |
| download | spring-blog-b1581ed1046f4aef077aea4fe6a1b01e599125d2.tar.gz spring-blog-b1581ed1046f4aef077aea4fe6a1b01e599125d2.zip | |
remove lombok
Diffstat (limited to 'src/main/java/com/blog/web/models/UserEntity.java')
| -rw-r--r-- | src/main/java/com/blog/web/models/UserEntity.java | 44 |
1 files changed, 40 insertions, 4 deletions
diff --git a/src/main/java/com/blog/web/models/UserEntity.java b/src/main/java/com/blog/web/models/UserEntity.java index 2dfb036..c416cb6 100644 --- a/src/main/java/com/blog/web/models/UserEntity.java +++ b/src/main/java/com/blog/web/models/UserEntity.java @@ -9,10 +9,6 @@ import lombok.Setter; import java.util.ArrayList; import java.util.List; -@Getter -@Setter -@NoArgsConstructor -@AllArgsConstructor @Entity(name = "users") // Named UserEntity to prevent conflicts with Java User object public class UserEntity { @@ -29,4 +25,44 @@ public class UserEntity { inverseJoinColumns = {@JoinColumn(name = "role_id", referencedColumnName = "id")} ) private List<Role> roles = new ArrayList<>(); + + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } + + public String getUsername() { + return username; + } + + public void setUsername(String username) { + this.username = username; + } + + public String getEmail() { + return email; + } + + public void setEmail(String email) { + this.email = email; + } + + public String getPassword() { + return password; + } + + public void setPassword(String password) { + this.password = password; + } + + public List<Role> getRoles() { + return roles; + } + + public void setRoles(List<Role> roles) { + this.roles = roles; + } } |
