|
|
|
@ -78,8 +78,8 @@ public class JdbcEntityWriter extends JdbcEntityWriterSupport { |
|
|
|
Update<Object> update = DbAction.update(o, propertyPath, dependingOn); |
|
|
|
Update<Object> update = DbAction.update(o, propertyPath, dependingOn); |
|
|
|
aggregateChange.addAction(update); |
|
|
|
aggregateChange.addAction(update); |
|
|
|
|
|
|
|
|
|
|
|
referencedEntities(o).forEach( |
|
|
|
referencedEntities(o).forEach(propertyAndValue -> insertReferencedEntities(propertyAndValue, aggregateChange, |
|
|
|
propertyAndValue -> insertReferencedEntities(propertyAndValue, aggregateChange, propertyPath.nested(propertyAndValue.property.getName()), update)); |
|
|
|
propertyPath.nested(propertyAndValue.property.getName()), update)); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@ -160,7 +160,9 @@ public class JdbcEntityWriter extends JdbcEntityWriterSupport { |
|
|
|
|
|
|
|
|
|
|
|
Object property = propertyAccessor.getProperty(p); |
|
|
|
Object property = propertyAccessor.getProperty(p); |
|
|
|
|
|
|
|
|
|
|
|
if (property == null) return Stream.empty(); |
|
|
|
if (property == null) { |
|
|
|
|
|
|
|
return Stream.empty(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// ugly hackery since Java streams don't have a zip method.
|
|
|
|
// ugly hackery since Java streams don't have a zip method.
|
|
|
|
AtomicInteger index = new AtomicInteger(); |
|
|
|
AtomicInteger index = new AtomicInteger(); |
|
|
|
|