File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
hibernate-core/src/main/java/org/hibernate/engine/spi Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -325,7 +325,7 @@ public int effectiveBatchSize(CollectionPersister persister) {
325
325
}
326
326
327
327
public boolean effectivelyBatchLoadable (CollectionPersister persister ) {
328
- return batchSize > 1 || persister . isBatchLoadable () ;
328
+ return persister . isBatchLoadable () || effectiveBatchSize ( persister ) > 1 ;
329
329
}
330
330
331
331
public int effectiveBatchSize (EntityPersister persister ) {
@@ -336,7 +336,7 @@ public int effectiveBatchSize(EntityPersister persister) {
336
336
}
337
337
338
338
public boolean effectivelyBatchLoadable (EntityPersister persister ) {
339
- return batchSize > 1 || persister . isBatchLoadable () ;
339
+ return persister . isBatchLoadable () || effectiveBatchSize ( persister ) > 1 ;
340
340
}
341
341
342
342
public boolean getSubselectFetchEnabled () {
You can’t perform that action at this time.
0 commit comments