- Timestamp:
- 07/30/22 15:39:04 (2 years ago)
- Branches:
- main
- Children:
- e958037
- Parents:
- 3a44163
- Location:
- springapp
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
springapp/pom.xml
r3a44163 r2998dc4 57 57 <version>2.7.2</version> 58 58 </dependency> 59 <dependency> 60 <groupId>com.voodoodyne.jackson.jsog</groupId> 61 <artifactId>jackson-jsog</artifactId> 62 <version>1.1.2</version> 63 <scope>compile</scope> 64 </dependency> 59 65 </dependencies> 60 66 -
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; -
springapp/src/main/java/mk/profesori/springapp/Model/Post.java
r3a44163 r2998dc4 20 20 21 21 import com.fasterxml.jackson.annotation.JsonIdentityInfo; 22 import com. fasterxml.jackson.annotation.ObjectIdGenerators;22 import com.voodoodyne.jackson.jsog.JSOGGenerator; 23 23 24 24 import lombok.NoArgsConstructor; … … 27 27 @Inheritance(strategy = InheritanceType.SINGLE_TABLE) 28 28 @DiscriminatorColumn(name = "post_type", discriminatorType = DiscriminatorType.STRING) 29 @JsonIdentityInfo(generator = ObjectIdGenerators.PropertyGenerator.class, property = "postId")29 @JsonIdentityInfo(generator = JSOGGenerator.class) 30 30 @NoArgsConstructor 31 31 public class Post { -
springapp/src/main/java/mk/profesori/springapp/Model/_Thread.java
r3a44163 r2998dc4 27 27 private Subject targetSubject; 28 28 29 // TODO 29 // TODO threadovi 30 30 /* 31 31 * public _Thread(String title, String content, List<String> tags, Section
Note:
See TracChangeset
for help on using the changeset viewer.