Leopold Odenthal (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *commented* on HHH-17004 (
https://hibernate.atlassian.net/browse/HHH-17004?atlOrigin=eyJpIjoiNjQzMj...
)
Re: Nullpointer wenn using setFirstResult and setMaxResults in diffrent combinations (
https://hibernate.atlassian.net/browse/HHH-17004?atlOrigin=eyJpIjoiNjQzMj...
)
This issue is also related to the dialect and LimitHandler being used.
We are using *org.hibernate.community.dialect.CacheDialect* that using a
*TopLimitHandler.*
Depending on whether the code enters the if condition in
org.hibernate.query.sqm.internal.ConcreteSqmSelectQueryPlan#withCacheableSqmInterpretation
else {
// If the translation depends on parameter bindings or it isn't compatible with the
current query options,
// we have to rebuild the JdbcSelect, which is still better than having to translate
from SQM to SQL AST again
if ( localCopy.jdbcSelect.dependsOnParameterBindings() ) {
jdbcParameterBindings = createJdbcParameterBindings( localCopy, executionContext );
}
(
https://hibernate.atlassian.net/browse/HHH-17004#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-17004#add-comment?atlOrigin=ey...
)
Get Jira notifications on your phone! Download the Jira Cloud app for Android (
https://play.google.com/store/apps/details?id=com.atlassian.android.jira....
) or iOS (
https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=Em...
) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100234- sha1:6fcbbaf )