- Timestamp:
- 07/30/22 15:39:04 (2 years ago)
- Branches:
- main
- Children:
- e958037
- Parents:
- 3a44163
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
springapp/src/main/java/mk/profesori/springapp/Model/CustomUserDetails.java
r3a44163 r2998dc4 23 23 24 24 import com.fasterxml.jackson.annotation.JsonIdentityInfo; 25 import com. fasterxml.jackson.annotation.ObjectIdGenerators;25 import com.voodoodyne.jackson.jsog.JSOGGenerator; 26 26 27 27 import lombok.EqualsAndHashCode; … … 35 35 @NoArgsConstructor 36 36 @Entity 37 @JsonIdentityInfo(generator = ObjectIdGenerators.PropertyGenerator.class, property = "id")37 @JsonIdentityInfo(generator = JSOGGenerator.class) 38 38 public class CustomUserDetails implements UserDetails { 39 39 … … 45 45 private String username; 46 46 private String email; 47 private String password; 47 private String password; // TODO dont expose password in api 48 48 @Enumerated(EnumType.STRING) 49 49 private UserRole userRole;
Note:
See TracChangeset
for help on using the changeset viewer.