Merge branch 'master' of github.com:ebean-orm/ebean

This commit is contained in:
rob bygrave committed 2019-01-15 22:16:15 +13:00
commit 27cda09523
7 files changed
+186 -2

No files matched your search

@@ -327,14 +327,16 @@ public final class BatchControl {
return maxDepth + 1;
}
int parentMaxDepth = -1;
for (BeanPropertyAssocOne<?> parent : imported) {
BatchedBeanHolder parentBatch = beanHoldMap.get(parent.getTargetDescriptor().rootName());
if (parentBatch != null) {
// deeper that the parent
return parentBatch.getOrder() + 1;
parentMaxDepth = Math.max(parentMaxDepth, parentBatch.getOrder() + 1);
}
}
return -1;
return parentMaxDepth;
}
/**