Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
as of now EJBQLQuery is the only object query that supports data aggregation. Yet (according to the JPA spec that we've followed originally) we can no order query results on aggregated values. E.g. the following won't parse:
select a, count(p) from Artist a INNER JOIN a.paintings p order by count(p) DESC
Will need to add support for this feature to the grammar and runtime.