File tree Expand file tree Collapse file tree 1 file changed +8
-9
lines changed
hibernate-core/src/main/java/org/hibernate/loader/ast/internal Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -354,6 +354,14 @@ private LoaderSelectBuilder(
354
354
this .entityGraphTraversalState = entityGraphTraversalState ;
355
355
this .forceIdentifierSelection = forceIdentifierSelection ;
356
356
this .jdbcParameterConsumer = jdbcParameterConsumer ;
357
+ if ( loadable instanceof PluralAttributeMapping ) {
358
+ final PluralAttributeMapping pluralAttributeMapping = (PluralAttributeMapping ) loadable ;
359
+ if ( pluralAttributeMapping .getMappedType ()
360
+ .getCollectionSemantics ()
361
+ .getCollectionClassification () == CollectionClassification .BAG ) {
362
+ rowCardinality = RowCardinality .BAG ;
363
+ }
364
+ }
357
365
}
358
366
359
367
private LoaderSelectBuilder (
@@ -440,15 +448,6 @@ private static EntityGraphTraversalState determineGraphTraversalState(LoadQueryI
440
448
}
441
449
442
450
private SelectStatement generateSelect () {
443
- if ( loadable instanceof PluralAttributeMapping ) {
444
- final PluralAttributeMapping pluralAttributeMapping = (PluralAttributeMapping ) loadable ;
445
- if ( pluralAttributeMapping .getMappedType ()
446
- .getCollectionSemantics ()
447
- .getCollectionClassification () == CollectionClassification .BAG ) {
448
- rowCardinality = RowCardinality .BAG ;
449
- }
450
- }
451
-
452
451
final NavigablePath rootNavigablePath = new NavigablePath ( loadable .getRootPathName () );
453
452
454
453
final QuerySpec rootQuerySpec = new QuerySpec ( true );
You can’t perform that action at this time.
0 commit comments