Changeset 2a5d6a3 in Git for src/main/java/com/wediscussmovies/project/model/Reply.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/Reply.java
r7a0bf79 r2a5d6a3 5 5 import javax.persistence.*; 6 6 import java.sql.Date; 7 import java.util.Optional; 7 8 8 9 @Data 9 @Entity(name="replies") 10 @Entity 11 @Table(name="replies") 10 12 public class Reply { 11 13 @Id … … 27 29 @Column(name= "text", length = 1000, nullable = false) 28 30 private String text; 31 32 public Reply(Discussion discussion, User user, Date date, String text) { 33 this.discussion = discussion; 34 this.user = user; 35 this.date = date; 36 this.text = text; 37 } 29 38 } 30 39
Note:
See TracChangeset
for help on using the changeset viewer.