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 09de492 commit b736610Copy full SHA for b736610
hibernate-core/src/main/java/org/hibernate/query/sqm/sql/BaseSqmToSqlAstConverter.java
@@ -8323,6 +8323,15 @@ else if ( getLoadQueryInfluencers().hasEnabledFetchProfiles() ) {
8323
}
8324
else {
8325
tableGroup = compatibleTableGroup;
8326
+
8327
+ if ( joinProducer instanceof PluralAttributeMapping attributeMapping ) {
8328
+ if ( attributeMapping.getOrderByFragment() != null ) {
8329
+ applyOrdering( tableGroup, attributeMapping.getOrderByFragment() );
8330
+ }
8331
+ if ( attributeMapping.getManyToManyOrderByFragment() != null ) {
8332
+ applyOrdering( tableGroup, attributeMapping.getManyToManyOrderByFragment() );
8333
8334
8335
8336
8337
// and return the joined group
0 commit comments