#1816 Fix for OneToMany relation to non-cached target bean.

This commit is contained in:
rob bygrave
2019-09-12 14:55:37 +12:00
parent 3495d03706
commit d2ece76ca8
5 changed files with 13 additions and 5 deletions
@@ -169,7 +169,7 @@ public class LoadManyRequest extends LoadRequest {
Object parentId = desc.getId(ownerBean);
logger.debug("BeanCollection after lazy load was empty. type:" + ownerBean.getClass().getName() + " id:" + parentId + " owner:" + ownerBean);
}
} else if (isLoadCache()) {
} else if (isLoadCache() && many.isUseCache()) {
Object parentId = desc.getId(bc.getOwnerBean());
desc.cacheManyPropPut(many, bc, parentId);
}