Uploaded image for project: 'OpenJPA'
  1. OpenJPA
  2. OPENJPA-1195

Allow datastore function as query expression

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0
    • Fix Version/s: 2.0.0-M3
    • Component/s: query
    • Labels:
      None

      Description

      Create a query expression that uses a datastore function such as MOD(..) or MAX(..) in a generic fashion.

      This is required by function() support for CriteriaQuery and adds a generic capability for queries so we can query something like

      "select CURRENT_USER(), x.name FROM Person x WHERE LENGTH(x.name)>10 ORDER BY LENGTH(x.name)"

      Notice that JPQL Parser may not like the syntax – but CriteriaQuery will allow such possibility.

      Allow the function() to accept 0 or more arguments as expressions.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ppoddar@apache.org Pinaki Poddar
                Reporter:
                ppoddar@apache.org Pinaki Poddar
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: