QnA게시판 댓글 작성 엔터티
This commit is contained in:
@@ -0,0 +1,38 @@
|
|||||||
|
package com.eactive.apim.portal.qna.entity;
|
||||||
|
|
||||||
|
import com.eactive.apim.portal.common.entity.Auditable;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.EqualsAndHashCode;
|
||||||
|
import lombok.ToString;
|
||||||
|
import org.hibernate.annotations.GenericGenerator;
|
||||||
|
|
||||||
|
import javax.persistence.*;
|
||||||
|
import java.io.Serializable;
|
||||||
|
|
||||||
|
@Entity
|
||||||
|
@Table(name = "PTL_INQUIRY_COMMENT")
|
||||||
|
@Data
|
||||||
|
@EqualsAndHashCode(callSuper = true)
|
||||||
|
@ToString(exclude = "inquiry")
|
||||||
|
public class InquiryComment extends Auditable implements Serializable {
|
||||||
|
|
||||||
|
@Id
|
||||||
|
@Column(name = "id", length = 36, nullable = false)
|
||||||
|
@GenericGenerator(name = "uuid-gen", strategy = "uuid2")
|
||||||
|
@GeneratedValue(generator = "uuid-gen", strategy = GenerationType.IDENTITY)
|
||||||
|
private String id;
|
||||||
|
|
||||||
|
@ManyToOne(fetch = FetchType.LAZY)
|
||||||
|
@JoinColumn(name = "INQUIRY_ID", nullable = false, foreignKey = @ForeignKey(ConstraintMode.NO_CONSTRAINT))
|
||||||
|
private Inquiry inquiry;
|
||||||
|
|
||||||
|
@Lob
|
||||||
|
@Column(name = "COMMENT_DETAIL")
|
||||||
|
private String commentDetail;
|
||||||
|
|
||||||
|
@Column(name = "SEQ")
|
||||||
|
private int seq;
|
||||||
|
|
||||||
|
@Column(name = "DEL_YN", length = 1)
|
||||||
|
private String delYn = "N";
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user