mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
#431 - Annotation PrivateOwned seems not enough to update an change in the list of children (fix)
This commit is contained in:
@@ -643,6 +643,15 @@ public final class DefaultPersister implements Persister {
|
||||
private boolean isCascade() {
|
||||
return cascade;
|
||||
}
|
||||
|
||||
public 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 saveMany(SaveManyPropRequest saveMany, boolean insertMode) {
|
||||
@@ -684,6 +693,7 @@ public final class DefaultPersister implements Persister {
|
||||
|
||||
BeanCollection<?> c = (BeanCollection<?>) details;
|
||||
Set<?> modifyRemovals = c.getModifyRemovals();
|
||||
saveMany.modifyListenReset(c);
|
||||
if (modifyRemovals != null && !modifyRemovals.isEmpty()) {
|
||||
|
||||
SpiTransaction t = saveMany.getTransaction();
|
||||
|
||||
Reference in New Issue
Block a user