Skip to content

Commit

Permalink
Add cascadeType.ALL
Browse files Browse the repository at this point in the history
  • Loading branch information
Fagorym committed May 19, 2024
1 parent ba278d3 commit 3d6a0cc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public class Establishment {
@OneToMany(fetch = FetchType.EAGER, mappedBy = "establishment", cascade = CascadeType.ALL)
private Set<Photo> photos;

@OneToMany(mappedBy = "establishment")
@OneToMany(mappedBy = "establishment", cascade = CascadeType.ALL)
private Set<Review> reviews;

@ElementCollection(targetClass = Tag.class, fetch = FetchType.EAGER)
Expand Down

0 comments on commit 3d6a0cc

Please sign in to comment.