Skip to content

Commit

Permalink
feat: 연관 관계 매핑 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
maiload committed Sep 5, 2024
1 parent b59926b commit 42c1dde
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ public class User {
@Enumerated(EnumType.STRING)
private Role role;

@OneToMany
@ToString.Exclude
@OneToMany(mappedBy = "user")
private LinkedHashSet<Diary> diaries = new LinkedHashSet<>();

@DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME)
Expand Down

0 comments on commit 42c1dde

Please sign in to comment.