Gavin King (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *commented* on HHH-16858 (
https://hibernate.atlassian.net/browse/HHH-16858?atlOrigin=eyJpIjoiNGNjZT...
)
Re: Can't compare test expression of type [BasicSqmPathSource(type : Enum)] with
element of type [basicType(a)5(java.lang.Integer,4)] (
https://hibernate.atlassian.net/browse/HHH-16858?atlOrigin=eyJpIjoiNGNjZT...
)
Oh I see, so taking away the generics, it seems that we do accept from Entity where enum
> 1 in general. I guess I’m not much of a fan of this, and I think it would be better
if we asked people to write:
from Entity where cast ( enum as Integer ) > 1
since that’s more explicit and more obviously meaningful, or, at least
from Entity where enum > ENUM_VALUE
But perhaps for the sake of backwards compatibility we need to keep supporting the version
without the enum>1 version. Though perhaps we should find some way to discourage it.
This is something I guess we should discuss internally.
(
https://hibernate.atlassian.net/browse/HHH-16858#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-16858#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:3bc807d )