Skip to content
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

[OPENJPA-2932] Implements numeric JPA 3.1 JPQL functions and equivalent Criteria API #122

Merged
merged 6 commits into from
Feb 2, 2025

Conversation

cristof
Copy link
Contributor

@cristof cristof commented Jan 17, 2025

Fixes OPENJPA-2932

* 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)
Copy link
Contributor

@solomax solomax left a 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! :))

* Minor style fixing on ifs
* Removing unused import statements in test
@cristof
Copy link
Contributor Author

cristof commented Jan 24, 2025

Fixed issues on fork. Please review again.

Copy link
Contributor

@solomax solomax left a 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 :)

* Addressing doubts on instrumental creation of derbdb functions
* Fixing InMemoryExpressionFactory missing TODO
@solomax solomax merged commit 4cc3050 into apache:master Feb 2, 2025
1 check passed
@solomax
Copy link
Contributor

solomax commented Feb 2, 2025

Thanks a million for the contribution! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants