From 304a447ee36fe670eda52bc8bb3fa615e213511c Mon Sep 17 00:00:00 2001 From: rlarltj123 Date: Wed, 31 Jul 2024 23:14:40 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20grade=EB=A5=BC=20wrapper=20class?= =?UTF-8?q?=EB=A1=9C=20=EB=B3=80=EA=B2=BD=ED=95=9C=EB=8B=A4.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../domain/user/api/response/UserProfileResponse.java | 2 +- .../java/com/moneymong/domain/user/entity/UserUniversity.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/moneymong/domain/user/api/response/UserProfileResponse.java b/src/main/java/com/moneymong/domain/user/api/response/UserProfileResponse.java index dee85d9..5bd20e2 100644 --- a/src/main/java/com/moneymong/domain/user/api/response/UserProfileResponse.java +++ b/src/main/java/com/moneymong/domain/user/api/response/UserProfileResponse.java @@ -15,7 +15,7 @@ public class UserProfileResponse { private String nickname; private String email; private String universityName; - private int grade; + private Integer grade; public static UserProfileResponse from(User user, UserUniversity userUniversity) { return UserProfileResponse.builder() diff --git a/src/main/java/com/moneymong/domain/user/entity/UserUniversity.java b/src/main/java/com/moneymong/domain/user/entity/UserUniversity.java index c71e49c..984d563 100644 --- a/src/main/java/com/moneymong/domain/user/entity/UserUniversity.java +++ b/src/main/java/com/moneymong/domain/user/entity/UserUniversity.java @@ -42,12 +42,12 @@ public class UserUniversity extends TimeBaseEntity { @Column private Integer grade; - public void update(String universityName, int grade) { + public void update(String universityName, Integer grade) { this.universityName = universityName; this.grade = grade; } - public static UserUniversity of(Long userId, String universityName, int grade) { + public static UserUniversity of(Long userId, String universityName, Integer grade) { return UserUniversity.builder() .userId(userId) .universityName(universityName)