package com.itsol.quantrivanphong.model;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import java.sql.Timestamp;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Entity
@Table(name = "issuescomment")
public class IssuesComment {
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id", nullable = false, unique = true)
    private Integer id;
    //nội dung
    @Column(name = "content")
    private String contentIssuse;

    @Column(name = "usercreate")
    private String userCreate;

    @Column(name = "createdate")
    private Timestamp createDate;

    @ManyToOne(fetch = FetchType.EAGER)
    private Issues issues;
}
