HHH-16109 Don't add limits to named queries when not needed
This commit is contained in:
parent
98ca6fcfb3
commit
edd1c7b7ae
|
@ -1128,8 +1128,8 @@ public class QuerySqmImpl<R>
|
|||
return new NamedCriteriaQueryMementoImpl(
|
||||
name,
|
||||
sqmStatement,
|
||||
getFirstResult(),
|
||||
getMaxResults(),
|
||||
getQueryOptions().getLimit().getFirstRow(),
|
||||
getQueryOptions().getLimit().getMaxRows(),
|
||||
isCacheable(),
|
||||
getCacheRegion(),
|
||||
getCacheMode(),
|
||||
|
@ -1147,8 +1147,8 @@ public class QuerySqmImpl<R>
|
|||
return new NamedHqlQueryMementoImpl(
|
||||
name,
|
||||
getQueryString(),
|
||||
getFirstResult(),
|
||||
getMaxResults(),
|
||||
getQueryOptions().getLimit().getFirstRow(),
|
||||
getQueryOptions().getLimit().getMaxRows(),
|
||||
isCacheable(),
|
||||
getCacheRegion(),
|
||||
getCacheMode(),
|
||||
|
|
Loading…
Reference in New Issue