-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCardSetIncremental.java
More file actions
42 lines (35 loc) · 1.09 KB
/
CardSetIncremental.java
File metadata and controls
42 lines (35 loc) · 1.09 KB
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
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_incrementals")
@Entity
public class CardSetIncremental extends BaseEntity {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
@Column(name = "cardset_id", nullable = false)
private Long cardSetId;
@Lob
@Column(name = "incremental_value", nullable = false)
private byte[] incrementalValue;
@Column(name = "is_flushed")
private boolean flushed;
@Builder
private CardSetIncremental(Long cardSetId, byte[] incrementalValue, boolean flushed) {
this.cardSetId = cardSetId;
this.incrementalValue = incrementalValue;
this.flushed = flushed;
}
}