mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-07 11:48:18 +00:00
HHH-18571 Fix bug and correctly report effective batching
This commit is contained in:
parent
ff1d5fdb90
commit
8a88ad7f59
@ -325,7 +325,7 @@ public int effectiveBatchSize(CollectionPersister persister) {
|
||||
}
|
||||
|
||||
public boolean effectivelyBatchLoadable(CollectionPersister persister) {
|
||||
return batchSize > 1 || persister.isBatchLoadable();
|
||||
return persister.isBatchLoadable() || effectiveBatchSize( persister ) > 1;
|
||||
}
|
||||
|
||||
public int effectiveBatchSize(EntityPersister persister) {
|
||||
@ -336,7 +336,7 @@ public int effectiveBatchSize(EntityPersister persister) {
|
||||
}
|
||||
|
||||
public boolean effectivelyBatchLoadable(EntityPersister persister) {
|
||||
return batchSize > 1 || persister.isBatchLoadable();
|
||||
return persister.isBatchLoadable() || effectiveBatchSize( persister ) > 1;
|
||||
}
|
||||
|
||||
public boolean getSubselectFetchEnabled() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user