Changeset 8d83180 for springapp/src/main/java/mk/profesori
- Timestamp:
- 10/11/22 15:41:16 (2 years ago)
- Branches:
- main
- Children:
- c68150f
- Parents:
- cae16b5
- 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 16 16 17 17 import com.fasterxml.jackson.annotation.JsonIdentityInfo; 18 import com. fasterxml.jackson.annotation.ObjectIdGenerators;18 import com.voodoodyne.jackson.jsog.JSOGGenerator; 19 19 20 20 @Entity 21 21 @Table(name = "study_programme") 22 @JsonIdentityInfo(generator = ObjectIdGenerators.PropertyGenerator.class, property = "studyProgrammeId")22 @JsonIdentityInfo(generator = JSOGGenerator.class) 23 23 public class StudyProgramme { 24 24 -
springapp/src/main/java/mk/profesori/springapp/Model/_Thread.java
rcae16b5 r8d83180 1 1 package mk.profesori.springapp.Model; 2 2 3 import java.time.LocalDateTime; 3 4 import java.util.ArrayList; 4 5 import java.util.List; … … 15 16 public class _Thread extends Post { 16 17 17 @Column(name = "tags") 18 @Column(name = "tags") // unused 18 19 @ElementCollection 19 20 private List<String> tags = new ArrayList<>(); … … 27 28 private Subject targetSubject; 28 29 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 } 39 46 40 47 // getters
Note:
See TracChangeset
for help on using the changeset viewer.