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

[master] Jakarta Persistence 3.2 new feature - JPQL functions ID(), VERSION() #2108

Merged
merged 3 commits into from
Apr 9, 2024

Conversation

rfelcman
Copy link
Contributor

@rfelcman rfelcman commented Apr 5, 2024

Implementation plus unit test according jakartaee/persistence#596

There are two new JPQL functions:

  • ID(...) to fetch Entity @Id value. There is support for single or composite primary key
  • VERSION(...) to fetch attribute value from attribute marked by @Version annotation

These functions are specific as they are exist in JPQL only, but not in SQL like other JPQL functions where are usually similar SQL function/procedure.

rfelcman added 3 commits April 5, 2024 21:44
Signed-off-by: Radek Felcman <radek.felcman@oracle.com>
…fied filed), VERSION() vs version (non-qualified filed)) use qualified fields in the queries.

Signed-off-by: Radek Felcman <radek.felcman@oracle.com>
Signed-off-by: Radek Felcman <radek.felcman@oracle.com>
@rfelcman rfelcman merged commit 3d1e6b4 into eclipse-ee4j:master Apr 9, 2024
6 checks passed
@rfelcman rfelcman deleted the jpql_32_id_version branch April 9, 2024 10:20
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