Uploaded image for project: 'Cayenne'
  1. Cayenne
  2. CAY-2004

EJBQL: Support for ordering on aggregate expressions

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 4.0.M3
    • 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.

      Attachments

        Activity

          People

            andrus Andrus Adamchik
            andrus Andrus Adamchik
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: