Alex Nistico (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *commented* on HHH-16268 (
https://hibernate.atlassian.net/browse/HHH-16268?atlOrigin=eyJpIjoiZWNjZm...
)
Re: Exception thrown in named query with List parameter after Spring Boot 3/Hibernate 6
upgrade (
https://hibernate.atlassian.net/browse/HHH-16268?atlOrigin=eyJpIjoiZWNjZm...
)
We are experiencing the same problem and it all seems to boil down to the fact that the
SqmParameter for SqmNullnessPredicate do not allow multiple value bindings. If we patch
SemanticQueryBuilder. visitIsNullPredicate to push allow multiple value bindings on the
stack, everything works as expected and documented, that is it we do:
@Override
public SqmNullnessPredicate visitIsNullPredicate(HqlParser.IsNullPredicateContext ctx) {
parameterDeclarationContextStack.push( () -> true ); // allow multiple values for
null checks
try {
final boolean negated = ctx.getChildCount() == 4;
return new SqmNullnessPredicate(
(SqmExpression<?>) ctx.getChild( 0 ).accept( this ),
negated,
creationContext.getNodeBuilder()
);
} finally {
parameterDeclarationContextStack.pop();
}
}
(
https://hibernate.atlassian.net/browse/HHH-16268#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-16268#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#100232- sha1:33a7c72 )