diff options
Diffstat (limited to 'src/main/java/com/blog/web/models/UserEntity.java')
| -rw-r--r-- | src/main/java/com/blog/web/models/UserEntity.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/com/blog/web/models/UserEntity.java b/src/main/java/com/blog/web/models/UserEntity.java index c94db6b..bf45b21 100644 --- a/src/main/java/com/blog/web/models/UserEntity.java +++ b/src/main/java/com/blog/web/models/UserEntity.java @@ -13,7 +13,7 @@ import java.util.stream.Collectors; public class UserEntity { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) - private Long id; + private long id; private String username; private String email; private String password; @@ -29,11 +29,11 @@ public class UserEntity { return new User(this.getEmail(), this.getPassword(), this.getRoles().stream().map((role) -> new SimpleGrantedAuthority(role.getName())).collect(Collectors.toList())); } - public Long getId() { + public long getId() { return id; } - public void setId(Long id) { + public void setId(long id) { this.id = id; } |
