Archie Cobbs (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *commented* on HHH-16318 (
https://hibernate.atlassian.net/browse/HHH-16318?atlOrigin=eyJpIjoiODkwZT...
)
Re: Wrong SQL query generated when type() tested inside selectCase() expression (
https://hibernate.atlassian.net/browse/HHH-16318?atlOrigin=eyJpIjoiODkwZT...
)
I’m currently re-working all of the treat optimizations for Hibernate 6
and will try to finish that for 6.2.0.Final, but I doubt that we can
reasonably fix this in 5.
Sounds good - thanks.
For the record, I found a workaround for this. You can avoid the bug by changing
expressions like cb.treat(animal, Dog.class) into ((From<?, Dog>)(Object)animal) ,
and then adding @SuppressWarnings of course.
(
https://hibernate.atlassian.net/browse/HHH-16318#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-16318#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#100217- sha1:fd7c927 )