Gavin King (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *commented* on HHH-16247 (
https://hibernate.atlassian.net/browse/HHH-16247?atlOrigin=eyJpIjoiODRmNT...
)
Re: Criteria Query with Object-Typed Embedded Parameter throws AssertionError (
https://hibernate.atlassian.net/browse/HHH-16247?atlOrigin=eyJpIjoiODRmNT...
)
Right, but if I was them and saw an AssertionError I would say the same. (Clearly the
AssertionError was a bug, but that’s not what we’re discussing anymore.)
It seems to me, if I’m understanding your code, that your repository has a method where
the parameter is statically typed to AnEmbeddable. So how is it correct for Spring to call
cb.parameter(Object.class) here? Surely it should create a criteria parameter with the
same type as your method parameter, no?
(I might be missing something.)
(
https://hibernate.atlassian.net/browse/HHH-16247#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-16247#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:9e449c4 )