HHH-9330 : orphanRemoval=true does not work in bidirectional relationships (without cascading)
(cherry picked from commit ef3550eed5
)
This commit is contained in:
parent
fa90757f04
commit
68838823bd
|
@ -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