Skip to content

Commit 070c798

Browse files
committed
feat: 활동 연혁 엔티티 정의 (DASOMBE-15)
1 parent 98de3f8 commit 070c798

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
package dmu.dasom.api.domain.activity.entity;
2+
3+
import jakarta.persistence.*;
4+
import lombok.*;
5+
6+
@Entity
7+
@Getter
8+
@Builder
9+
@AllArgsConstructor
10+
@NoArgsConstructor(access = AccessLevel.PROTECTED)
11+
public class ActivityHistory {
12+
13+
@Id
14+
@GeneratedValue(strategy = GenerationType.IDENTITY)
15+
private Long id;
16+
17+
private int year;
18+
private String section;
19+
private String title;
20+
private String award;
21+
22+
public void update(int year, String section, String title, String award) {
23+
this.year = year;
24+
this.section = section;
25+
this.title = title;
26+
this.award = award;
27+
}
28+
}

0 commit comments

Comments
 (0)