| Summary: | JPA 2.1 JPQL Generic Function support | ||
|---|---|---|---|
| Product: | z_Archived | Reporter: | Gordon Yorke <gordon.yorke> |
| Component: | Eclipselink | Assignee: | James Sutherland <jamesssss> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | P3 | CC: | jamesssss, tom.ware |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| URL: | http://wiki.eclipse.org/EclipseLink/DesignDocs/350843 | ||
| Whiteboard: | |||
| Bug Depends on: | |||
| Bug Blocks: | 338610 | ||
Added support for FUNCTION in Hermes. function() is already supported in Criteria as of JPA 2.0? See patch in bug#305187 For Criteria Queries the method <T> Expression<T> function(String name, Class<T> type,Expression<?>... args); was introduced and supported as part of JPA 2.0 Fixed in 2.4 The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink |
Support to call SQL functions not part of the JPQL BNF or Criteria API has been proposed for the Specification. For JPQL the proposed form is " FUNCTION(function_name {, function_arg}*)" and can be used anywhere an expression can be used in a JPQL statement. For Criteria Queries the method <T> Expression<T> function(String name, Class<T> type,Expression<?>... args); is being proposed for the CriteriaBuilder.