Skip to content

Commit

Permalink
Fix cascading in RoleEntity
Browse files Browse the repository at this point in the history
Signed-off-by: Václav Muzikář <[email protected]>
  • Loading branch information
vmuzikar committed Aug 30, 2024
1 parent 4131193 commit 3c70749
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public class RoleEntity {
@Column(name="CLIENT_REALM_CONSTRAINT", length = 36)
private String clientRealmConstraint;

@ManyToMany(fetch = FetchType.LAZY, cascade = {})
@ManyToMany(fetch = FetchType.LAZY, cascade = CascadeType.PERSIST)
@JoinTable(name = "COMPOSITE_ROLE", joinColumns = @JoinColumn(name = "COMPOSITE"), inverseJoinColumns = @JoinColumn(name = "CHILD_ROLE"))
private Set<RoleEntity> compositeRoles;

Expand Down

0 comments on commit 3c70749

Please sign in to comment.