From f62ae955ccee22f8bd646d07e6e1ae2d9555c223 Mon Sep 17 00:00:00 2001 From: kseysh Date: Wed, 9 Oct 2024 02:46:35 +0900 Subject: [PATCH] =?UTF-8?q?[refactor]=20SoptampUser=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(#401)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../org/sopt/app/domain/entity/soptamp/SoptampUser.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main/java/org/sopt/app/domain/entity/soptamp/SoptampUser.java b/src/main/java/org/sopt/app/domain/entity/soptamp/SoptampUser.java index bd975b94..f0317ebb 100755 --- a/src/main/java/org/sopt/app/domain/entity/soptamp/SoptampUser.java +++ b/src/main/java/org/sopt/app/domain/entity/soptamp/SoptampUser.java @@ -1,6 +1,7 @@ package org.sopt.app.domain.entity.soptamp; import jakarta.persistence.*; +import jakarta.validation.constraints.NotNull; import lombok.*; import org.sopt.app.domain.entity.BaseEntity; import org.sopt.app.domain.enums.PlaygroundPart; @@ -16,16 +17,22 @@ public class SoptampUser extends BaseEntity { @GeneratedValue(strategy = GenerationType.IDENTITY) private Long id; + @NotNull private Long userId; + @NotNull private String profileMessage; + @NotNull private Long totalPoints; + @NotNull private String nickname; + @NotNull private Long generation; + @NotNull private String part; public void initTotalPoints() {