File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
hibernate-core/src/main/java/org/hibernate/query/sqm/sql Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -8494,6 +8494,16 @@ else if ( getLoadQueryInfluencers().hasEnabledFetchProfiles() ) {
8494
8494
}
8495
8495
else {
8496
8496
tableGroup = compatibleTableGroup ;
8497
+
8498
+ if ( joinProducer instanceof PluralAttributeMapping ) {
8499
+ final PluralAttributeMapping attributeMapping = (PluralAttributeMapping ) joinProducer ;
8500
+ if ( attributeMapping .getOrderByFragment () != null ) {
8501
+ applyOrdering ( tableGroup , attributeMapping .getOrderByFragment () );
8502
+ }
8503
+ if ( attributeMapping .getManyToManyOrderByFragment () != null ) {
8504
+ applyOrdering ( tableGroup , attributeMapping .getManyToManyOrderByFragment () );
8505
+ }
8506
+ }
8497
8507
}
8498
8508
8499
8509
// and return the joined group
You can’t perform that action at this time.
0 commit comments