Florian Hof (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=6411c30...
) *commented* on HHH-16312 (
https://hibernate.atlassian.net/browse/HHH-16312?atlOrigin=eyJpIjoiZDBjOT...
)
Re: function with collection makes NullPointerException (
https://hibernate.atlassian.net/browse/HHH-16312?atlOrigin=eyJpIjoiZDBjOT...
)
ANY(subquery) does sadly not work on H2 in-memory database because of long-living bug 1934
(
https://github.com/h2database/h2database/issues/1934 ) , as noticed and checked in
https://stackoverflow.com/questions/72095966/in-h2-database-how-to-use-an...
Trying criteriaBuilder.isMember(...) also not work for me.
In all case I believe that a custom function should be supported in Hibernate. The new
validations in Hibernate 6 seems not to cope with every edge cases. With Hibernate 5 and
less validation, I could use the function properly. I attach 2 tests that currently lead
to an exception, first one is my primary use case, see:
JPAHHH16312UnitTestCase.java (
https://hibernate.atlassian.net/secure/attachment/50315/50315_JPAHHH16312...
)
(
https://hibernate.atlassian.net/browse/HHH-16312#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-16312#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#100222- sha1:57eb20e )