HHH-9330 : orphanRemoval=true does not work in bidirectional relationships (without cascading)
This commit is contained in:
parent
555e229cc2
commit
ef3550eed5
|
@ -205,7 +205,9 @@ public class CascadeStyles {
|
|||
public static final CascadeStyle DELETE_ORPHAN = new BaseCascadeStyle() {
|
||||
@Override
|
||||
public boolean doCascade(CascadingAction action) {
|
||||
return action == CascadingActions.DELETE || action == CascadingActions.SAVE_UPDATE;
|
||||
return action == CascadingActions.DELETE ||
|
||||
action == CascadingActions.SAVE_UPDATE ||
|
||||
action == CascadingActions.PERSIST_ON_FLUSH;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue