Skip to content

Commit

Permalink
fix: Album과 Album Likes, Album Comments간 연관관계 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
lcqff committed Jan 27, 2025
1 parent 88f01c8 commit 70e8702
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public class AlbumComment extends UuidEntity {
@JoinColumn(name = "ARTIST_ID", nullable = false)
private Artist artist;

@OneToOne(fetch = FetchType.LAZY)
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "ALBUM_ID", nullable = false)
private Album album;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public class AlbumLike extends UuidEntity {
@JoinColumn(name = "ARTIST_ID", nullable = false)
private Artist artist;

@OneToOne(fetch = FetchType.LAZY)
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "ALBUM_ID", nullable = false)
private Album album;
}

0 comments on commit 70e8702

Please sign in to comment.