Skip to content

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