diff --git a/src/main/java/ktb/hackathon/ktbgratitudediary/entity/User.java b/src/main/java/ktb/hackathon/ktbgratitudediary/entity/User.java index ef31749..0a50626 100644 --- a/src/main/java/ktb/hackathon/ktbgratitudediary/entity/User.java +++ b/src/main/java/ktb/hackathon/ktbgratitudediary/entity/User.java @@ -44,7 +44,8 @@ public class User { @Enumerated(EnumType.STRING) private Role role; - @OneToMany + @ToString.Exclude + @OneToMany(mappedBy = "user") private LinkedHashSet diaries = new LinkedHashSet<>(); @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME)