mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-17 22:56:28 +00:00
FIX: insert in batch OneToOne relationship (#1609)
This commit is contained in:
1 parent
2e0690efa9
commit
bac53a5d75
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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user