Wrong cast to query and childid propblem fix (#990)

This commit is contained in:
Péter Csubák authored and Rob Bygrave committed 2017-03-11 12:21:34 +13:00
1 parent 3051412d90
commit a3dbd4538f
2 files changed
+5 -3

No files matched your search

@@ -653,7 +653,9 @@ public final class DefaultPersister implements Persister {
executeSqlUpdate(sqlDelete, t);
} else {
List<Object> childIds = expOne.findIdsByParentId(id, idList, t);
deleteChildrenById(t, targetDesc, childIds, softDelete);
if (childIds != null && !childIds.isEmpty()) {
deleteChildrenById(t, targetDesc, childIds, softDelete);
}
}
}
}