Gavin King (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *commented* on HHH-16445 (
https://hibernate.atlassian.net/browse/HHH-16445?atlOrigin=eyJpIjoiODMwZG...
)
Re: avg() no longer works with enums (
https://hibernate.atlassian.net/browse/HHH-16445?atlOrigin=eyJpIjoiODMwZG...
)
Similar to
https://hibernate.atlassian.net/browse/HHH-16859 , an enum is not a numeric
value, and HQL quite rightly rejects this.
As I understand it, you can write avg(cast(enum as Integer)) , and I think that is a much
preferable and more understandable thing.
So I don’t think we should “fix” this, and instead I think we should just close this
issue.
(
https://hibernate.atlassian.net/browse/HHH-16445#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-16445#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 )