Ignore:
Timestamp:
02/09/22 15:46:58 (3 years ago)
Author:
Test <matonikolov77@…>
Branches:
main
Children:
8f1b7e9
Parents:
967b414
Message:

Refactored reply repository and discussion repository

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/main/java/com/wediscussmovies/project/model/Discussion.java

    r967b414 r6f91f99  
    11package com.wediscussmovies.project.model;
    22
     3import com.wediscussmovies.project.model.relation.DiscussionLikes;
    34import lombok.Data;
    45
    56import javax.persistence.*;
    67import java.sql.Date;
     8import java.util.List;
    79import java.util.Objects;
    810
     
    2931
    3032
     33
     34
     35
    3136    @ManyToOne
    3237    @JoinColumn(name = "movie_id")
     
    4146    private Person person;
    4247
     48    @Transient
     49    private Long likes;
     50
    4351    public Discussion(Character type, String text, String title, Date date, User user) {
    4452        this.type = type;
     
    5260    }
    5361
    54     public String getText() {
    55         return text;
    56     }
    57 
    58     public void setText(String text) {
    59         this.text = text;
    60     }
    61 
    62     public String getTitle() {
    63         return title;
    64     }
    65 
    66     public void setTitle(String title) {
    67         this.title = title;
    68     }
    69 
    70     public Date getDate() {
    71         return date;
    72     }
    73 
    74     public void setDate(Date date) {
    75         this.date = date;
    76     }
    7762
    7863    @Override
Note: See TracChangeset for help on using the changeset viewer.