Skip to content

Commit

Permalink
[REFACTOR] shows-spaceApply cascade수정 (#124)
Browse files Browse the repository at this point in the history
  • Loading branch information
dldusgh318 committed Aug 22, 2024
2 parents cc4e891 + 9d7ed52 commit 38f14d9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions src/main/java/umc/ShowHoo/web/shows/entity/Shows.java
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public class Shows {
@ManyToOne @JoinColumn(name = "performerProfile_id")
private PerformerProfile performerProfile;

@OneToOne(mappedBy = "shows")
@OneToOne(mappedBy = "shows",cascade = CascadeType.ALL)
private RentalFile rentalFile;

@OneToMany(mappedBy = "shows", cascade = CascadeType.ALL)
Expand All @@ -63,8 +63,7 @@ public class Shows {
@OneToOne(mappedBy = "shows", cascade = CascadeType.ALL)
private ShowsDescription showsDescription;

@OneToOne(cascade = CascadeType.ALL)
@JoinColumn(name = "spaceApply_id")
@OneToOne @JoinColumn(name = "spaceApply_id")
private SpaceApply spaceApply;

}
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,6 @@ public class SpaceApply {
@OneToMany(mappedBy = "spaceApply", cascade = CascadeType.ALL)
private List<SelectedAdditionalService> selectedAdditionalServices;

@OneToOne(mappedBy = "spaceApply")
@OneToOne(mappedBy = "spaceApply", cascade = CascadeType.ALL)
private Shows shows;
}

0 comments on commit 38f14d9

Please sign in to comment.