Ignore:
Timestamp:
10/11/22 15:41:16 (22 months ago)
Author:
unknown <mlviktor23@…>
Branches:
main
Children:
c68150f
Parents:
cae16b5
Message:

forums/page nav

Location:
springapp/src/main/java/mk/profesori/springapp/Model
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • springapp/src/main/java/mk/profesori/springapp/Model/StudyProgramme.java

    rcae16b5 r8d83180  
    1616
    1717import com.fasterxml.jackson.annotation.JsonIdentityInfo;
    18 import com.fasterxml.jackson.annotation.ObjectIdGenerators;
     18import com.voodoodyne.jackson.jsog.JSOGGenerator;
    1919
    2020@Entity
    2121@Table(name = "study_programme")
    22 @JsonIdentityInfo(generator = ObjectIdGenerators.PropertyGenerator.class, property = "studyProgrammeId")
     22@JsonIdentityInfo(generator = JSOGGenerator.class)
    2323public class StudyProgramme {
    2424
  • springapp/src/main/java/mk/profesori/springapp/Model/_Thread.java

    rcae16b5 r8d83180  
    11package mk.profesori.springapp.Model;
    22
     3import java.time.LocalDateTime;
    34import java.util.ArrayList;
    45import java.util.List;
     
    1516public class _Thread extends Post {
    1617
    17     @Column(name = "tags")
     18    @Column(name = "tags") // unused
    1819    @ElementCollection
    1920    private List<String> tags = new ArrayList<>();
     
    2728    private Subject targetSubject;
    2829
    29     // TODO threadovi
    30     /*
    31      * public _Thread(String title, String content, List<String> tags, Section
    32      * parentSection, Subject targetSubject) {
    33      * super(title, content);
    34      * this.tags = tags;
    35      * this.parentSection = parentSection;
    36      * this.targetSubject = targetSubject;
    37      * }
    38      */
     30    // konstruktor so parent (koga e reply)
     31    public _Thread(String title, String content, CustomUserDetails author, LocalDateTime timePosted,
     32            LocalDateTime timeLastEdited,
     33            Post parent, List<Post> children, Section parentSection, Subject targetSubject) {
     34        super(title, content, author, timePosted, timeLastEdited, parent, children);
     35        this.parentSection = parentSection;
     36        this.targetSubject = targetSubject;
     37    }
     38
     39    // konstruktor bez parent (koga NE e reply)
     40    public _Thread(String title, String content, CustomUserDetails author, LocalDateTime timePosted,
     41            LocalDateTime timeLastEdited, List<Post> children, Section parentSection, Subject targetSubject) {
     42        super(title, content, author, timePosted, timeLastEdited, children);
     43        this.parentSection = parentSection;
     44        this.targetSubject = targetSubject;
     45    }
    3946
    4047    // getters
Note: See TracChangeset for help on using the changeset viewer.