| 1234567891011121314151617181920212223242526272829303132333435 |
- package nju.seec.helper.entity;
- import lombok.Data;
- import lombok.experimental.Accessors;
- import org.hibernate.annotations.CreationTimestamp;
- import javax.persistence.*;
- import java.time.LocalDateTime;
- /**
- * @author cst
- */
- @Data
- @Accessors(chain = true)
- @Entity
- @Table(name = "reply")
- public class Reply {
- @Id
- @GeneratedValue(strategy = GenerationType.IDENTITY)
- private Integer id;
- @ManyToOne
- @JoinColumn(name = "comment_id", nullable = false)
- private Comment comment;
- @Column(name = "teacher_id", nullable = false)
- private Integer teacherId;
- @Column(nullable = false)
- private String content;
- @Column(name = "create_at", updatable = false)
- @CreationTimestamp
- private LocalDateTime createAt;
- }
|