From 9393f10f117f82d863800b90885aeb9cda7644f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=9D=B4=EC=A3=BC=EC=95=A0?= Date: Fri, 26 Jul 2024 18:21:17 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EC=82=AC=EC=9A=A9=EC=9E=90=20exp=20?= =?UTF-8?q?=EC=B4=88=EA=B8=B0=ED=99=94=20=EC=98=A4=EB=A5=98=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/leets/commitatobe/domain/user/domain/User.java | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/main/java/com/leets/commitatobe/domain/user/domain/User.java b/src/main/java/com/leets/commitatobe/domain/user/domain/User.java index 95ca17d..e9daec7 100644 --- a/src/main/java/com/leets/commitatobe/domain/user/domain/User.java +++ b/src/main/java/com/leets/commitatobe/domain/user/domain/User.java @@ -14,6 +14,7 @@ @Getter @Builder @AllArgsConstructor +@NoArgsConstructor public class User extends BaseTimeEntity { @Id @@ -34,7 +35,8 @@ public class User extends BaseTimeEntity { private String profileImage; @Column(nullable = false) - private Integer exp; + @Builder.Default + private Integer exp = 0; @Column private Integer commitDays; @@ -75,9 +77,4 @@ public void updateTotalCommitCount(Integer totalCommitCount){ public void updateTodayCommitCount(Integer todayCommitCount){ this.todayCommitCount=todayCommitCount; } - - public User(){ - this.exp=0; - } - }