Duplicate
Details
Details
Assignee
Alex Zaytsev
Alex ZaytsevReporter
JanK
JanKLabels
Components
Affects versions
Priority
Who's Looking?
Open Who's Looking?
Created April 24, 2008 at 5:55 AM
Updated August 30, 2020 at 8:20 PM
Resolved August 30, 2020 at 8:20 PM
I would like to bring up the issue in HQL with 'GROUP BY object'
Refering to those forums:
http://forum.hibernate.org/viewtopic.php?t=953716
http://forum.hibernate.org/viewtopic.php?t=950514
And this issue:
https://nhibernate.jira.com/browse/NH-528
I believe that current behavior is a bug. Or at least non-consistency.
The alias of object should have consistent behavior. So if I include it after SELECT it should act the same way as if I put it after GROUP BY. If I want to work with primary I would simply use alias.id