#595 - Refactor - persistence context root type handling - fully expect root type

This commit is contained in:
Robin Bygrave
2016-03-11 20:54:57 +13:00
parent 33f69902dc
commit 49121a9c1f
8 changed files with 60 additions and 36 deletions
@@ -394,7 +394,7 @@ public class CQuery<T> implements DbReadContext, CancelableQuery {
if (lazyLoadParentId != null) {
if (!lazyLoadParentId.equals(this.lazyLoadParentId)) {
// get the appropriate parent bean from the persistence context
this.lazyLoadParentBean = (EntityBean) getPersistenceContext().get(lazyLoadManyProperty.getBeanDescriptor().getBeanType(), lazyLoadParentId);
this.lazyLoadParentBean = (EntityBean) lazyLoadManyProperty.getBeanDescriptor().contextGet(getPersistenceContext(), lazyLoadParentId);
this.lazyLoadParentId = lazyLoadParentId;
}