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
- is part of
-
OPENJPA-1013 Build strictly-typed Criteria API
- Closed
-
OPENJPA-1152 OpenJPA 2.0 iteration 9 primary task
- Closed
- relates to
-
OPENJPA-273 Native functions in JPQL; functions available in more clauses
- Open