#115 - Mapping - Add support for @ElementCollection enhancement

Add embedded bean support
This commit is contained in:
Rob Bygrave committed 2018-03-28 13:22:46 +13:00
1 parent cca837bcfa
commit 57870aaa05
30 files changed
+1247 -243

No files matched your search

@@ -89,20 +89,6 @@ class SaveManyBeans extends SaveManyBase {
return BeanCollection.ModifyListenMode.REMOVALS == many.getModifyListenMode();
}
private void modifyListenReset(BeanCollection<?> c) {
if (insertedParent) {
// after insert set the modify listening mode for private owned etc
c.setModifyListening(many.getModifyListenMode());
}
c.modifyReset();
}
private void resetModifyState() {
if (value instanceof BeanCollection<?>) {
modifyListenReset((BeanCollection<?>) value);
}
}
/**
* Save the details from a OneToMany collection.
*/