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)