Skip to content

Commit

Permalink
fix: User 도메인에 Album과의 영속성 전이 설정 추가 (#170)
Browse files Browse the repository at this point in the history
  • Loading branch information
mingeun0507 committed Apr 15, 2024
1 parent 3465b96 commit d3c33ad
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import com.guttery.madii.common.domain.model.BaseTimeEntity;
import com.guttery.madii.domain.achievement.domain.model.Achievement;
import com.guttery.madii.domain.albums.domain.model.Album;
import com.guttery.madii.domain.albums.domain.model.SavingAlbum;
import com.guttery.madii.domain.joy.domain.model.Joy;
import com.guttery.madii.domain.notification.domain.model.Notification;
Expand Down Expand Up @@ -45,6 +46,8 @@ public class User extends BaseTimeEntity {
private List<Joy> joys;
@OneToMany(mappedBy = "user", cascade = CascadeType.ALL, orphanRemoval = true)
private List<SavingAlbum> savingAlbums;
@OneToMany(mappedBy = "user", cascade = CascadeType.ALL, orphanRemoval = true)
private List<Album> createdAlbums;
@OneToMany(mappedBy = "achiever", cascade = CascadeType.ALL, orphanRemoval = true)
private List<Achievement> achievements;
@OneToMany(mappedBy = "user", cascade = CascadeType.ALL, orphanRemoval = true)
Expand Down

0 comments on commit d3c33ad

Please sign in to comment.