FIX: ignore elementCollections

This commit is contained in:
Roland Praml
2022-02-01 09:53:52 +01:00
parent 30fb55b401
commit 4251383ab8
@@ -62,7 +62,9 @@ class VisitHandler {
EntityBeanIntercept ebi = bean._ebean_getIntercept();
for (BeanPropertyAssocMany<?> many : manys) {
// check that property is loaded and collection should be cascaded to
if (ebi.isLoadedProperty(many.propertyIndex()) && !many.isSkipSaveBeanCollection(bean, ebi.isNew())) {
if (ebi.isLoadedProperty(many.propertyIndex())
&& !many.isSkipSaveBeanCollection(bean, ebi.isNew())
&& !many.isElementCollection()) {
Object manyValue = many.getValue(bean);
if (manyValue != null) {
PersistVisitor propertyVisitor = visitor.visitProperty(many);