Skip to content

Commit 7e78f82

Browse files
committed
fix: FetchType.LAZY 제거
1 parent 025509b commit 7e78f82

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

src/main/java/org/dfbf/soundlink/domain/blocklist/entity/Blocklist.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public class Blocklist {
2121
@Column(name = "blocklist_id")
2222
private Long blocklistId;
2323

24-
@ManyToOne(fetch = FetchType.LAZY)
24+
@ManyToOne/*(fetch = FetchType.LAZY)*/
2525
@JoinColumn(name = "user_id")
2626
private User user;
2727

src/main/java/org/dfbf/soundlink/domain/emotionRecord/entity/EmotionRecord.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@ public class EmotionRecord {
1919
@Column(name = "record_id")
2020
private Long recordId;
2121

22-
@ManyToOne(fetch = FetchType.LAZY)
22+
@ManyToOne/*(fetch = FetchType.LAZY)*/
2323
@JoinColumn(name = "user_id")
2424
private User user;
2525

2626
@Enumerated(EnumType.STRING)
2727
@Column(name = "emotion")
2828
private Emotions emotion;
2929

30-
@ManyToOne(fetch = FetchType.LAZY)
30+
@ManyToOne/*(fetch = FetchType.LAZY)*/
3131
@JoinColumn(name = "spotify_id")
3232
private SpotifyMusic spotifyMusic;
3333

src/main/java/org/dfbf/soundlink/domain/user/entity/ProfileMusic.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public class ProfileMusic {
2121
@JoinColumn(name = "profile_music_id")
2222
private Long profileMusicId;
2323

24-
@ManyToOne(fetch = FetchType.LAZY)
24+
@ManyToOne/*(fetch = FetchType.LAZY)*/
2525
@JoinColumn(name = "spotify_id")
2626
private SpotifyMusic spotifyMusic;
2727

src/main/java/org/dfbf/soundlink/domain/user/entity/User.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ public class User {
2121
@Column(name = "user_id")
2222
private Long userId;
2323

24-
@JsonIgnore
25-
@OneToOne(fetch = FetchType.LAZY, cascade = CascadeType.PERSIST)
24+
/*@JsonIgnore*/
25+
@OneToOne(/*fetch = FetchType.LAZY, */cascade = CascadeType.PERSIST)
2626
@JoinColumn(name = "profile_music_id")
2727
private ProfileMusic profileMusic;
2828

0 commit comments

Comments
 (0)