Skip to content

Commit a95bfe2

Browse files
committed
fix: 지연로딩에 의한 캐싱 오류 수정
- jsonIgnore 추가
1 parent 509c151 commit a95bfe2

File tree

1 file changed

+2
-0
lines changed
  • src/main/java/org/dfbf/soundlink/domain/user/entity

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package org.dfbf.soundlink.domain.user.entity;
22

3+
import com.fasterxml.jackson.annotation.JsonIgnore;
34
import jakarta.persistence.*;
45
import lombok.*;
56
import org.dfbf.soundlink.domain.emotionRecord.entity.SpotifyMusic;
@@ -20,6 +21,7 @@ public class User {
2021
@Column(name = "user_id")
2122
private Long userId;
2223

24+
@JsonIgnore
2325
@OneToOne(fetch = FetchType.LAZY, cascade = CascadeType.PERSIST)
2426
@JoinColumn(name = "profile_music_id")
2527
private ProfileMusic profileMusic;

0 commit comments

Comments
 (0)