Changeset 2a5d6a3 in Git for src/main/java/com/wediscussmovies/project/model/Discussion.java
- Timestamp:
- 01/16/22 15:29:49 (3 years ago)
- Branches:
- main
- Children:
- 7bc8942
- Parents:
- 7a0bf79
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/com/wediscussmovies/project/model/Discussion.java
r7a0bf79 r2a5d6a3 9 9 @Data 10 10 @Entity 11 @Table (name="discussions") 11 12 public class Discussion { 12 13 @Id … … 35 36 private Date date; 36 37 38 @Column(name = "type", nullable = false) 39 private DiscussionType type; 37 40 @OneToMany 38 41 private List<Reply> replies; 42 43 public Discussion() { 44 } 45 46 public Discussion(String title, String text, User user, Movie movie, Date valueOf) { 47 this.title = title; 48 this.text = text; 49 this.user = user; 50 this.date = valueOf; 51 this.movie = movie; 52 this.type = DiscussionType.M; 53 } 54 55 public Discussion(String title, String text, User user, Person person, Date valueOf) { 56 this.title = title; 57 this.text = text; 58 this.user = user; 59 this.date = valueOf; 60 this.person = person; 61 this.type = DiscussionType.P; 62 } 63 64 39 65 } 40 66
Note:
See TracChangeset
for help on using the changeset viewer.