Skip to content

Commit

Permalink
[HOTFIX] jpa column insertable 제거 및 Builder 주입 누락 필드(category) 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
yummygyudon committed Jan 27, 2025
1 parent feb9836 commit 6dd1890
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ public static AlarmContent withAppLink(String title, String content, AlarmCatego
return AlarmContent.builder()
.title(title)
.content(content)
.category(category)
.linkPath(link)
.linkType(AlarmLinkType.APP)
.build();
Expand All @@ -57,6 +58,7 @@ public static AlarmContent withWebLink(String title, String content, AlarmCatego
return AlarmContent.builder()
.title(title)
.content(content)
.category(category)
.linkPath(link)
.linkType(AlarmLinkType.WEB)
.build();
Expand All @@ -66,6 +68,7 @@ public static AlarmContent withoutLink(String title, String content, AlarmCatego
return AlarmContent.builder()
.title(title)
.content(content)
.category(category)
.linkType(AlarmLinkType.NONE)
.build();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,19 @@
@Embeddable
public class AlarmTarget {

@Column(name = "action", nullable = false, updatable = false, insertable = false)
@Column(name = "action", nullable = false, updatable = false)
@Enumerated(EnumType.STRING)
private AlarmSendAction sendAction;

@Column(name = "part", nullable = false, updatable = false, insertable = false)
@Column(name = "part", nullable = false, updatable = false)
@Enumerated(EnumType.STRING)
private AlarmTargetPart targetPart;

@Column(name = "target_type", nullable = false, updatable = false, insertable = false)
@Column(name = "target_type", nullable = false, updatable = false)
@Enumerated(EnumType.STRING)
private AlarmTargetType targetType;

@Column(name = "generation", updatable = false, insertable = false)
@Column(name = "generation", updatable = false)
private Integer generation;

@Setter
Expand Down

0 comments on commit 6dd1890

Please sign in to comment.