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() ) {
84948494 }
84958495 else {
84968496 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+ }
84978507 }
84988508
84998509 // and return the joined group
You can’t perform that action at this time.
0 commit comments