Skip to content

Commit

Permalink
Fix Privilege Access Cascading
Browse files Browse the repository at this point in the history
  • Loading branch information
Gcolon021 committed Oct 3, 2024
1 parent f5f45bd commit 272dcb9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public class Privilege extends BaseEntity {
@JoinColumn(name = "application_id")
private Application application;

@ManyToMany(fetch = FetchType.LAZY)
@ManyToMany(cascade = {CascadeType.DETACH, CascadeType.MERGE, CascadeType.PERSIST, CascadeType.REFRESH})
@JoinTable(name = "accessRule_privilege",
joinColumns = {@JoinColumn(name = "privilege_id")},
inverseJoinColumns = {@JoinColumn(name = "accessRule_id")})
Expand Down

0 comments on commit 272dcb9

Please sign in to comment.