From 3b6456a1065bdfbc4a0fd64e076c5a361b8b94e0 Mon Sep 17 00:00:00 2001 From: kseysh Date: Wed, 9 Oct 2024 02:45:51 +0900 Subject: [PATCH] =?UTF-8?q?[refactor]=20Mission=EC=97=90=EC=84=9C=20NotNul?= =?UTF-8?q?l=20=EC=A0=9C=EC=95=BD=EC=A1=B0=EA=B1=B4=20=EC=B6=94=EA=B0=80?= =?UTF-8?q?=20=EB=B0=8F=20default=20value=20=EC=B6=94=EA=B0=80=20(#401)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/org/sopt/app/domain/entity/Notification.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/sopt/app/domain/entity/Notification.java b/src/main/java/org/sopt/app/domain/entity/Notification.java index a04146cf..0b3de8cc 100755 --- a/src/main/java/org/sopt/app/domain/entity/Notification.java +++ b/src/main/java/org/sopt/app/domain/entity/Notification.java @@ -30,9 +30,11 @@ public class Notification extends BaseEntity{ @Column(name = "notification_title", columnDefinition = "TEXT") private String title; + @NotNull @Column(name = "notification_content", columnDefinition = "TEXT") private String content; + @NotNull @Column(name = "notification_type") @Enumerated(EnumType.STRING) private NotificationType type; @@ -48,7 +50,7 @@ public class Notification extends BaseEntity{ @NotNull @ColumnDefault("false") - private Boolean isRead; + private boolean isRead; public void updateIsRead() { this.isRead = true;