37 lines
886 B
Java
37 lines
886 B
Java
|
|
package com.dbnt.kcgfilemanager.model;
|
||
|
|
|
||
|
|
import lombok.Getter;
|
||
|
|
import lombok.NoArgsConstructor;
|
||
|
|
import lombok.Setter;
|
||
|
|
import org.hibernate.annotations.DynamicInsert;
|
||
|
|
import org.hibernate.annotations.DynamicUpdate;
|
||
|
|
|
||
|
|
import javax.persistence.*;
|
||
|
|
import java.time.LocalDateTime;
|
||
|
|
|
||
|
|
@Getter
|
||
|
|
@Setter
|
||
|
|
@Entity
|
||
|
|
@NoArgsConstructor
|
||
|
|
@DynamicInsert
|
||
|
|
@DynamicUpdate
|
||
|
|
@Table(name = "BOARD")
|
||
|
|
public class Board extends BaseModel{
|
||
|
|
@Id
|
||
|
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||
|
|
@Column(name = "CONTENT_SEQ")
|
||
|
|
private Integer contentSeq;
|
||
|
|
@Column(name = "CATEGORY_SEQ")
|
||
|
|
private Integer categorySeq;
|
||
|
|
@Column(name = "TITLE")
|
||
|
|
private String title;
|
||
|
|
@Column(name = "DESCRIPTION")
|
||
|
|
private String description;
|
||
|
|
@Column(name = "STATUS")
|
||
|
|
private String status;
|
||
|
|
@Column(name = "CREATE_ID")
|
||
|
|
private String createId;
|
||
|
|
@Column(name = "CREATE_DATE")
|
||
|
|
private LocalDateTime createDate;
|
||
|
|
}
|