summaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/blog/web/models/UserEntity.java
diff options
context:
space:
mode:
authorrealtradam <[email protected]>2024-07-23 20:16:26 -0400
committerrealtradam <[email protected]>2024-07-23 20:16:26 -0400
commit56c59e3b98fe554c4e1484e208e4be5c30f09a04 (patch)
tree7f30db6e58f8f4376b4152d51140b6dd5c41cda4 /src/main/java/com/blog/web/models/UserEntity.java
parent5e2eab6f32bc76918aa17791b688d1df27d6ddfc (diff)
downloadspring-blog-56c59e3b98fe554c4e1484e208e4be5c30f09a04.tar.gz
spring-blog-56c59e3b98fe554c4e1484e208e4be5c30f09a04.zip
convert all articles endpoint to json
Diffstat (limited to 'src/main/java/com/blog/web/models/UserEntity.java')
-rw-r--r--src/main/java/com/blog/web/models/UserEntity.java6
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;
}