이연경/개인프로젝트 - Spring/demo/src/main/java/kr/eddi/demo/entity/jpa/boards/Board.java
<reponame>EDDI-WebAppAcademy/Homeworkpackage kr.eddi.demo.entity.jpa.boards;



import jakarta.persistence.*;
import lombok.Data;

import org.hibernate.annotations.CreationTimestamp;
import org.hibernate.annotations.UpdateTimestamp;

import java.util.Date;


@Data
@Entity

public class Board {


    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long boardNo;

    @Column(length = 128, nullable = false)
    private String title;

    @Column(length = 32, nullable = false)
    private String writer;

    @Lob
    private String content;

    @CreationTimestamp
    private Date regDate;

    @UpdateTimestamp
    private Date updDate;


}
