From 19c10b76f08e16fbee38fc369e0f91434d82e2f1 Mon Sep 17 00:00:00 2001 From: kseysh Date: Wed, 9 Oct 2024 02:44:46 +0900 Subject: [PATCH] =?UTF-8?q?[refactor]=20FortuneCard=EC=97=90=EC=84=9C=20No?= =?UTF-8?q?tNull=20=EC=A0=9C=EC=95=BD=EC=A1=B0=EA=B1=B4=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80=20(#399)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/org/sopt/app/domain/entity/fortune/FortuneCard.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/org/sopt/app/domain/entity/fortune/FortuneCard.java b/src/main/java/org/sopt/app/domain/entity/fortune/FortuneCard.java index 0066461e..b7f3ac0a 100755 --- a/src/main/java/org/sopt/app/domain/entity/fortune/FortuneCard.java +++ b/src/main/java/org/sopt/app/domain/entity/fortune/FortuneCard.java @@ -1,6 +1,7 @@ package org.sopt.app.domain.entity.fortune; import jakarta.persistence.*; +import jakarta.validation.constraints.NotNull; import lombok.*; @Getter @@ -12,12 +13,16 @@ public class FortuneCard { @GeneratedValue(strategy = GenerationType.IDENTITY) private Long id; + @NotNull private String name; + @NotNull private String description; + @NotNull @Column(columnDefinition = "TEXT") private String imageUrl; + @NotNull private String imageColorCode; }