-
Notifications
You must be signed in to change notification settings - Fork 149
[OPENJPA-2932] Implements numeric JPA 3.1 JPQL functions and equivalent Criteria API #122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
* 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)
…nt Criteria API * Implements CEILING, EXP, FLOOR, SIGN, LN, POWER and ROUND JPQL functions * Ajusts JPQL.jjt * Added kernel and jdbc equivalent expressions * Added one test for each new expression in JPQL and Criteria API * Updates manual page referring new FUNCTIONS * Added DatabaseHelper to add necessary functions on DerbyDb (it does not natively support POWER and ROUND functions)
solomax
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My comments are minor
PR looks very good! :))
openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/exps/Ceiling.java
Show resolved
Hide resolved
openjpa-kernel/src/main/java/org/apache/openjpa/kernel/exps/Ceiling.java
Show resolved
Hide resolved
openjpa-kernel/src/main/java/org/apache/openjpa/kernel/exps/Ceiling.java
Outdated
Show resolved
Hide resolved
openjpa-kernel/src/main/java/org/apache/openjpa/kernel/exps/Floor.java
Outdated
Show resolved
Hide resolved
...jpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/criteria/CriteriaTest.java
Outdated
Show resolved
Hide resolved
* Minor style fixing on ifs * Removing unused import statements in test
|
Fixed issues on fork. Please review again. |
solomax
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe one TODO item need to be addressed :)
openjpa-kernel/src/main/java/org/apache/openjpa/kernel/exps/InMemoryExpressionFactory.java
Outdated
Show resolved
Hide resolved
...rsistence-jdbc/src/test/java/org/apache/openjpa/persistence/common/utils/DatabaseHelper.java
Outdated
Show resolved
Hide resolved
...ence-jdbc/src/test/java/org/apache/openjpa/persistence/jpql/functions/TestEJBQLFunction.java
Show resolved
Hide resolved
* Addressing doubts on instrumental creation of derbdb functions * Fixing InMemoryExpressionFactory missing TODO
|
Thanks a million for the contribution! :) |
Fixes OPENJPA-2932