Changeset 8f1b7e9 in Git for src/main/java/com/wediscussmovies/project/model/Discussion.java
- Timestamp:
- 02/10/22 13:28:00 (3 years ago)
- Branches:
- main
- Children:
- 980eeda
- Parents:
- 6f91f99
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/com/wediscussmovies/project/model/Discussion.java
r6f91f99 r8f1b7e9 1 1 package com.wediscussmovies.project.model; 2 2 3 import com.wediscussmovies.project.model.relation.DiscussionLikes;3 import lombok.AllArgsConstructor; 4 4 import lombok.Data; 5 import org.springframework.beans.factory.annotation.Value; 5 6 6 7 import javax.persistence.*; 7 import java.sql.Date; 8 import java.util.List; 8 import java.time.LocalDate; 9 9 import java.util.Objects; 10 10 … … 28 28 @Basic 29 29 @Column(name = "date") 30 private Date date;30 private LocalDate date; 31 31 32 32 … … 47 47 48 48 @Transient 49 private Long likes;49 private long likes; 50 50 51 public Discussion(Character type, String text, String title, Date date, User user) {51 public Discussion(Character type, String text, String title, LocalDate date, User user) { 52 52 this.type = type; 53 53 this.text = text; … … 56 56 this.user = user; 57 57 } 58 59 58 60 59 61 public Discussion() {
Note:
See TracChangeset
for help on using the changeset viewer.