[ https://issues.apache.org/jira/browse/OPENJPA-2933?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17925271#comment-17925271 ]
ASF subversion and git services commented on OPENJPA-2933: ---------------------------------------------------------- Commit 141bcd6e8e61486a4f1d653ec040c6bdc7976745 in openjpa's branch refs/heads/master from Paulo Cristovão de Araújo Silva Filho [ https://gitbox.apache.org/repos/asf?p=openjpa.git;h=141bcd6e8 ] [OPENJPA-2933] Implements new date JPA 3.1 JPQL functions and equivalent Criteria API (#123) * OPENJPA-2908 * Bumped jakarta persistence API to 3.1.0 * Added necessary stub impl of methods (throws UnsupportedOperationException) * Tests passes, but actual impls must be made in probably different issues, one for each new features (https://jakarta.ee/specifications/persistence/3.1/jakarta-persistence-spec-3.1#jakarta-persistence-3-1) * [OPENJPA-2933] Implements LOCAL DATE, LOCAL TIME, LOCAL DATETIME and EXTRACT functions * Added JPA 3.1 date/time JPQL new functions LOCAL DATE, LOCAL TIME and LOCAL DATETIME and Criteria equivalents * Added JPQL EXTRACT date/time field and EXTRACT date/time (as a CAST) JPQL functions * Added tests to verify validity of BNF changes in JPQL.jjt and each new function * [OPENJPA-2933] Fixing typo and postgresql extract function * [OPENJPA-2933] Decreasing lookahead instruction of extract for better performance * [OPENJPA-2933] Finishing implementation * Updated round function usage and test due a corner case on postgresql tests * Made EXTRACT function test be resistent to date/time divergence between db and test environments * Updated manual BNF and Date Time functions chapters > Implement new date JPA 3.1 JPQL functions and equivalent Criteria API > --------------------------------------------------------------------- > > Key: OPENJPA-2933 > URL: https://issues.apache.org/jira/browse/OPENJPA-2933 > Project: OpenJPA > Issue Type: Bug > Affects Versions: 4.0.1 > Reporter: Paulo Cristovão de Araújo Silva Filho > Priority: Major > > As noted in OPENJPA-2930, although version 4.0.1 claims to be JPA 3.1 > compatible, pom.xml declared api is 3.0. There is already a PR (121) bumping > JPA version, but it doesn't implement the API new features. > OPENJPA-2932 deals with arithmetic new JPQL functions and Criteria API. > This issue is meant to control implementation of the new date functions of > Criteria API ({_}localDate(){_}, _localDateTime()_ and {_}localTime(){_}), as > well of the following new JPQL functions: > * LOCAL DATE > * LOCAL DATETIME > * LOCAL TIME > * EXTRACT(datetime_field FROM datetime_expression) > -- This message was sent by Atlassian Jira (v8.20.10#820010)