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 741f8aa commit 48ac928Copy full SHA for 48ac928
hibernate-core/src/main/java/org/hibernate/query/sqm/sql/BaseSqmToSqlAstConverter.java
@@ -8370,6 +8370,15 @@ else if ( getLoadQueryInfluencers().hasEnabledFetchProfiles() ) {
8370
}
8371
else {
8372
tableGroup = compatibleTableGroup;
8373
+
8374
+ if ( joinProducer instanceof PluralAttributeMapping attributeMapping ) {
8375
+ if ( attributeMapping.getOrderByFragment() != null ) {
8376
+ applyOrdering( tableGroup, attributeMapping.getOrderByFragment() );
8377
+ }
8378
+ if ( attributeMapping.getManyToManyOrderByFragment() != null ) {
8379
+ applyOrdering( tableGroup, attributeMapping.getManyToManyOrderByFragment() );
8380
8381
8382
8383
8384
// and return the joined group
0 commit comments