diff --git a/hibernate-core/src/main/java/org/hibernate/query/internal/NativeQueryImpl.java b/hibernate-core/src/main/java/org/hibernate/query/internal/NativeQueryImpl.java index bffebed89e..b08c3c393f 100644 --- a/hibernate-core/src/main/java/org/hibernate/query/internal/NativeQueryImpl.java +++ b/hibernate-core/src/main/java/org/hibernate/query/internal/NativeQueryImpl.java @@ -184,9 +184,11 @@ public class NativeQueryImpl extends AbstractProducedQuery implements Nati @Override protected ScrollableResultsImplementor doScroll(ScrollMode scrollMode) { + final QueryParameters queryParameters = getQueryParameters(); + queryParameters.setScrollMode( scrollMode ); return getProducer().scroll( generateQuerySpecification(), - getQueryParameters() + queryParameters ); }