Changeset 8f1b7e9 in Git for src/main/java/com/wediscussmovies/project/model
- Timestamp:
- 02/10/22 13:28:00 (3 years ago)
- Branches:
- main
- Children:
- 980eeda
- Parents:
- 6f91f99
- Location:
- src/main/java/com/wediscussmovies/project/model
- Files:
-
- 4 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() { -
src/main/java/com/wediscussmovies/project/model/Movie.java
r6f91f99 r8f1b7e9 9 9 10 10 import javax.persistence.*; 11 import java.io.Serializable; 11 12 import java.sql.Date; 12 13 import java.util.Collection; -
src/main/java/com/wediscussmovies/project/model/Person.java
r6f91f99 r8f1b7e9 7 7 import javax.persistence.*; 8 8 import javax.swing.text.DateFormatter; 9 import java.io.Serializable; 9 10 import java.sql.Date; 10 11 import java.time.LocalDate; -
src/main/java/com/wediscussmovies/project/model/User.java
r6f91f99 r8f1b7e9 10 10 11 11 import javax.persistence.*; 12 import java.io.Serializable; 12 13 import java.util.ArrayList; 13 14 import java.util.Collection;
Note:
See TracChangeset
for help on using the changeset viewer.