Skip to content

Commit

Permalink
optimize: 라운지 left join fetch User(3)
Browse files Browse the repository at this point in the history
  • Loading branch information
in-seo committed Jan 3, 2024
1 parent 20bf787 commit e380220
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SouP/src/main/java/Matching/SouP/domain/post/Lounge.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public class Lounge extends BaseTimeEntity {
@OneToMany(mappedBy = "lounge", cascade = CascadeType.REMOVE)
private List<LoungeConnect> loungeConnectList = new ArrayList<>();

@ManyToOne()
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "user_id")
private User user; //작성자

Expand Down

0 comments on commit e380220

Please sign in to comment.