HHH-11033 - NativeQueryImpl::doScroll seems to be broken when used with setParameterList (affects scroll and stream)

This commit is contained in:
Andrea Boriero 2016-08-14 17:53:23 +02:00
parent 6ec48514f7
commit 8d86770dcc
1 changed files with 2 additions and 1 deletions

View File

@ -188,10 +188,11 @@ public class NativeQueryImpl<T> extends AbstractProducedQuery<T> implements Nati
@Override @Override
protected ScrollableResultsImplementor doScroll(ScrollMode scrollMode) { protected ScrollableResultsImplementor doScroll(ScrollMode scrollMode) {
final NativeSQLQuerySpecification nativeSQLQuerySpecification = generateQuerySpecification();
final QueryParameters queryParameters = getQueryParameters(); final QueryParameters queryParameters = getQueryParameters();
queryParameters.setScrollMode( scrollMode ); queryParameters.setScrollMode( scrollMode );
return getProducer().scroll( return getProducer().scroll(
generateQuerySpecification(), nativeSQLQuerySpecification,
queryParameters queryParameters
); );
} }