Skip to content

Commit

Permalink
#87 fix: Notice 대체키 수정
Browse files Browse the repository at this point in the history
id -> Long 타입
token -> String 타입
  • Loading branch information
rivkode committed Jun 10, 2024
1 parent a91a556 commit c2a793c
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@
public class Notice extends BaseTime {
@Id
@Column(name = "notice_id")
private String id;
private Long id;

@Column(name = "notice_token")
private String noticeToken;

@Embedded
private NoticeTitle title;
Expand All @@ -42,8 +45,9 @@ public class Notice extends BaseTime {


@Builder
public Notice(String id, String title, String content, Project project) {
public Notice(Long id, String noticeToken, String title, String content, Project project) {
this.id = id;
this.noticeToken = noticeToken;
this.title = new NoticeTitle(title);
this.content = new NoticeContent(content);
this.project = project;
Expand Down

0 comments on commit c2a793c

Please sign in to comment.