Jakarta Persistence 3.2 new feature - JPQL functions ID(), VERSION() (#2108)
Implementation plus unit test according https://github.com/jakartaee/persistence/pull/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 at the DB side.
Jakarta Persistence 3.2 new feature - JPQL functions ID(), VERSION() (#2108) (commit: 3d1e6b4) (details)
Commit
3d1e6b49d32211b426e67935b2f3d31f2b891f5f
by GitHub
Jakarta Persistence 3.2 new feature - JPQL functions ID(), VERSION() (#2108)
Implementation plus unit test according https://github.com/jakartaee/persistence/pull/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 at the DB side.