-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathBoard.java
More file actions
43 lines (27 loc) · 799 Bytes
/
Board.java
File metadata and controls
43 lines (27 loc) · 799 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
package com.makefire.anonymous.domain.board.entity;
import com.makefire.anonymous.domain.common.BasicEntity;
import lombok.*;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Lob;
import javax.persistence.Table;
@Entity
@Table(name="BOARD")
@Getter
@NoArgsConstructor(access = AccessLevel.PROTECTED)
public class Board extends BasicEntity {
@Column(nullable = false)
private String title;
@Lob
@Column(nullable = false)
private String content;
private String author;
private Long authorId;
@Builder
public Board(String title, String content, String author, Long authorId) {
this.title = title;
this.content = content;
this.author = author;
this.authorId = authorId;
}
}