Skip to content

Commit

Permalink
Merge pull request #171 from 9uttery/fix/#170
Browse files Browse the repository at this point in the history
[Fix] User 도메인에 Album과의 영속성 전이 설정 추가 (#170)
  • Loading branch information
mingeun0507 authored Apr 15, 2024
2 parents 3465b96 + d3c33ad commit d55ee74
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 d55ee74

Please sign in to comment.