#1192 - findNative() with @Embedded beans ... the embedded bean isn't loaded properly

This commit is contained in:
rob bygrave committed 2017-11-01 23:03:57 +13:00
1 parent 10607385e0
commit 66fe278e3f
2 files changed
+50 -2

No files matched your search

@@ -449,8 +449,13 @@ class CQueryBuilder {
throw new PersistenceException(msg);
}
if (propertyName != null) {
String[] pathProp = SplitName.split(propertyName);
pathProps.addToPath(pathProp[0], pathProp[1]);
boolean assocProperty = el.isAssocProperty();
if (!assocProperty) {
pathProps.addToPath(null, propertyName);
} else {
String[] pathProp = SplitName.split(propertyName);
pathProps.addToPath(pathProp[0], pathProp[1]);
}
}
}
}