-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCardSetContent.java
More file actions
38 lines (32 loc) · 941 Bytes
/
CardSetContent.java
File metadata and controls
38 lines (32 loc) · 941 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
package project.flipnote.cardset.entity;
import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.GenerationType;
import jakarta.persistence.Id;
import jakarta.persistence.Lob;
import jakarta.persistence.Table;
import lombok.AccessLevel;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import project.flipnote.common.entity.BaseEntity;
@Getter
@NoArgsConstructor(access = AccessLevel.PROTECTED)
@Table(name = "cardset_contents")
@Entity
public class CardSetContent extends BaseEntity {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
@Column(name = "cardset_id", nullable = false)
private Long cardSetId;
@Lob
@Column(nullable = false)
private String content;
@Builder
private CardSetContent(Long cardSetId, String content) {
this.cardSetId = cardSetId;
this.content = content;
}
}