From 2126d2bf069a109b22b40ff92bf87462e2251db6 Mon Sep 17 00:00:00 2001 From: Chan531 Date: Fri, 28 Jun 2024 03:11:59 +0900 Subject: [PATCH] =?UTF-8?q?[REFACTOR]=20MemberChallengeResponse=20NPE=20?= =?UTF-8?q?=EB=8C=80=EC=9D=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dto/MemberChallengeResponse.java | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/src/main/java/com/soptie/server/memberroutine/repository/dto/MemberChallengeResponse.java b/src/main/java/com/soptie/server/memberroutine/repository/dto/MemberChallengeResponse.java index 11fd2404..71a45257 100644 --- a/src/main/java/com/soptie/server/memberroutine/repository/dto/MemberChallengeResponse.java +++ b/src/main/java/com/soptie/server/memberroutine/repository/dto/MemberChallengeResponse.java @@ -5,15 +5,17 @@ import com.soptie.server.routine.entity.Challenge; import com.soptie.server.theme.entity.Theme; +import lombok.NonNull; + public record MemberChallengeResponse( - Long id, - Long challengeId, - String routineContent, - String content, - String description, - String place, - String requiredTime, - Theme theme + long id, + long challengeId, + @NonNull String routineContent, + @NonNull String content, + @NonNull String description, + @NonNull String place, + @NonNull String requiredTime, + @NonNull Theme theme ) { @QueryProjection