openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pinaki Poddar (JIRA)" <j...@apache.org>
Subject [jira] Created: (OPENJPA-1195) Allow datastore function as query expression
Date Thu, 23 Jul 2009 22:16:14 GMT
Allow datastore function as query expression
--------------------------------------------

                 Key: OPENJPA-1195
                 URL: https://issues.apache.org/jira/browse/OPENJPA-1195
             Project: OpenJPA
          Issue Type: New Feature
            Reporter: Pinaki Poddar
            Assignee: Pinaki Poddar


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.


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message