#1656 #1824 Stateless updates - Remove update deleteMissingChildren option, instead always use orphanRemoval

This commit is contained in:
rob bygrave
2019-09-20 17:12:32 +12:00
parent 3574479627
commit fcadc63338
23 changed files with 227 additions and 151 deletions
@@ -84,11 +84,13 @@ class AnnotationAssocManys extends AnnotationParser {
if (oneToMany != null) {
readToOne(oneToMany, prop);
if (readOrphanRemoval(oneToMany)) {
prop.setOrphanRemoval();
prop.setModifyListenMode(ModifyListenMode.REMOVALS);
prop.getCascadeInfo().setDelete(true);
}
PrivateOwned privateOwned = get(prop, PrivateOwned.class);
if (privateOwned != null) {
prop.setOrphanRemoval();
prop.setModifyListenMode(ModifyListenMode.REMOVALS);
prop.getCascadeInfo().setDelete(privateOwned.cascadeRemove());
}