We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8961fbb commit be5ea65Copy full SHA for be5ea65
hibernate-core/src/main/java/org/hibernate/query/sqm/sql/BaseSqmToSqlAstConverter.java
@@ -8494,6 +8494,15 @@ else if ( getLoadQueryInfluencers().hasEnabledFetchProfiles() ) {
8494
}
8495
else {
8496
tableGroup = compatibleTableGroup;
8497
+
8498
+ if ( joinProducer instanceof PluralAttributeMapping attributeMapping ) {
8499
+ if ( attributeMapping.getOrderByFragment() != null ) {
8500
+ applyOrdering( tableGroup, attributeMapping.getOrderByFragment() );
8501
+ }
8502
+ if ( attributeMapping.getManyToManyOrderByFragment() != null ) {
8503
+ applyOrdering( tableGroup, attributeMapping.getManyToManyOrderByFragment() );
8504
8505
8506
8507
8508
// and return the joined group
0 commit comments