Marco Belladelli (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=637b480...
) *commented* on HHH-16804 (
https://hibernate.atlassian.net/browse/HHH-16804?atlOrigin=eyJpIjoiNDU2Y2...
)
Re: SqmComparisonPredicate does not store boolean Expressions (
https://hibernate.atlassian.net/browse/HHH-16804?atlOrigin=eyJpIjoiNDU2Y2...
)
Hello Thomas Herth (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=712020%...
) , as you can read from the javadoc (
https://jakarta.ee/specifications/persistence/3.1/apidocs/jakarta.persist...
) of JPA’s Predicate#getExpressions() method:
… Modifications to the list do not affect the query
I would suggest using a List<Predicate> instead and passing it to the
CriteriaQuery#where(Predicate... restrictions) method.
Since the current behavior in Hibernate 6 is correct I will close this issue. Feel free to
reach out if you need any additional information.
(
https://hibernate.atlassian.net/browse/HHH-16804#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-16804#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#100227- sha1:8ffa416 )