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

Allow datastore function as query expression

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.0
    • 2.0.0-M3
    • query
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: