return result;
}
// PERF: If a locking query, or isolated always, then cache is ignored, so no point checking.
// An error should be thrown on prepare is checkCacheOnly is used with these.
if ((!unitOfWork.isNestedUnitOfWork()) && (this.descriptor.getCachePolicy().shouldIsolateObjectsInUnitOfWork() || isLockQuery()) || unitOfWork.shouldForceReadFromDB(this, null)) {
return null;
}
// follow the execution path in looking for the object.
AbstractSession parentSession = unitOfWork.getParentIdentityMapSession(this);