#768 - Query.setDisableLazyLoading(true) ... not disabling lazy loading on @ManyToOne reference bean

This commit is contained in:
Robin Bygrave
2016-07-11 15:09:59 +12:00
parent 3b7f5496a8
commit 2991cb9ad1
16 changed files with 160 additions and 69 deletions
@@ -1294,7 +1294,7 @@ public final class DefaultPersister implements Persister {
// convert into a list of reference objects and perform delete by object
List<Object> refList = new ArrayList<Object>(childIds.size());
for (Object id : childIds) {
refList.add(targetDesc.createReference(null, id, null));
refList.add(targetDesc.createReference(null, false, id, null));
}
deleteList(refList, t, softDelete);