Skip to content

Commit

Permalink
chore: grade를 wrapper class로 변경한다.
Browse files Browse the repository at this point in the history
  • Loading branch information
rlarltj committed Jul 31, 2024
1 parent 738792f commit 304a447
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 304a447

Please sign in to comment.