Changeset 2998dc4 for springapp


Ignore:
Timestamp:
07/30/22 15:39:04 (2 years ago)
Author:
unknown <mlviktor23@…>
Branches:
main
Children:
e958037
Parents:
3a44163
Message:

made OpinionTree display author info

Location:
springapp
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • springapp/pom.xml

    r3a44163 r2998dc4  
    5757                <version>2.7.2</version>
    5858                </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>
    5965        </dependencies>
    6066
  • springapp/src/main/java/mk/profesori/springapp/Model/CustomUserDetails.java

    r3a44163 r2998dc4  
    2323
    2424import com.fasterxml.jackson.annotation.JsonIdentityInfo;
    25 import com.fasterxml.jackson.annotation.ObjectIdGenerators;
     25import com.voodoodyne.jackson.jsog.JSOGGenerator;
    2626
    2727import lombok.EqualsAndHashCode;
     
    3535@NoArgsConstructor
    3636@Entity
    37 @JsonIdentityInfo(generator = ObjectIdGenerators.PropertyGenerator.class, property = "id")
     37@JsonIdentityInfo(generator = JSOGGenerator.class)
    3838public class CustomUserDetails implements UserDetails {
    3939
     
    4545    private String username;
    4646    private String email;
    47     private String password;
     47    private String password; // TODO dont expose password in api
    4848    @Enumerated(EnumType.STRING)
    4949    private UserRole userRole;
  • springapp/src/main/java/mk/profesori/springapp/Model/Post.java

    r3a44163 r2998dc4  
    2020
    2121import com.fasterxml.jackson.annotation.JsonIdentityInfo;
    22 import com.fasterxml.jackson.annotation.ObjectIdGenerators;
     22import com.voodoodyne.jackson.jsog.JSOGGenerator;
    2323
    2424import lombok.NoArgsConstructor;
     
    2727@Inheritance(strategy = InheritanceType.SINGLE_TABLE)
    2828@DiscriminatorColumn(name = "post_type", discriminatorType = DiscriminatorType.STRING)
    29 @JsonIdentityInfo(generator = ObjectIdGenerators.PropertyGenerator.class, property = "postId")
     29@JsonIdentityInfo(generator = JSOGGenerator.class)
    3030@NoArgsConstructor
    3131public class Post {
  • springapp/src/main/java/mk/profesori/springapp/Model/_Thread.java

    r3a44163 r2998dc4  
    2727    private Subject targetSubject;
    2828
    29     // TODO
     29    // TODO threadovi
    3030    /*
    3131     * public _Thread(String title, String content, List<String> tags, Section
Note: See TracChangeset for help on using the changeset viewer.