HHH-17150 Remove final from SqmSelectionQueryImpl#setOrder

Hibernate Reactive needs to override these methods
This commit is contained in:
Davide D'Alto 2023-08-31 17:14:32 +02:00 committed by Christian Beikov
parent da522846d8
commit fb608bddb8
1 changed files with 2 additions and 2 deletions

View File

@ -291,7 +291,7 @@ public class SqmSelectionQueryImpl<R> extends AbstractSelectionQuery<R>
} }
@Override @Override
public final SelectionQuery<R> setOrder(List<Order<? super R>> orderList) { public SelectionQuery<R> setOrder(List<Order<? super R>> orderList) {
sqm = sqm.copy( SqmCopyContext.noParamCopyContext() ); sqm = sqm.copy( SqmCopyContext.noParamCopyContext() );
sqm.orderBy( orderList.stream().map( order -> sortSpecification( sqm, order ) ) sqm.orderBy( orderList.stream().map( order -> sortSpecification( sqm, order ) )
.collect( toList() ) ); .collect( toList() ) );
@ -302,7 +302,7 @@ public class SqmSelectionQueryImpl<R> extends AbstractSelectionQuery<R>
} }
@Override @Override
public final SelectionQuery<R> setOrder(Order<? super R> order) { public SelectionQuery<R> setOrder(Order<? super R> order) {
sqm = sqm.copy( SqmCopyContext.noParamCopyContext() ); sqm = sqm.copy( SqmCopyContext.noParamCopyContext() );
sqm.orderBy( sortSpecification( sqm, order ) ); sqm.orderBy( sortSpecification( sqm, order ) );
// TODO: when the QueryInterpretationCache can handle caching criteria queries, // TODO: when the QueryInterpretationCache can handle caching criteria queries,