document id(), version(), naturalid() functions

This commit is contained in:
Gavin King 2022-01-02 00:40:09 +01:00
parent 5a0537aa04
commit 2d55d9a3a8
1 changed files with 10 additions and 0 deletions

View File

@ -974,6 +974,16 @@ Next, functions for working with numeric values:
| `greatest()` | Return the largest of the given arguments | `greatest(x, y, z)` | Very common in SQL dialects
|===
Functions that evaluate to id, version, or natural id of an entity:
|===
| HQL Function | Purpose
| `id()` | The value of the entity `@Id` attribute.
| `version()` | The value of the entity `@Version` attribute.
| `naturalid()` | The value of the entity `@NaturalId` attribute.
|===
Finally, specialized functions for working with collection-valued attributes and to-many associations:
|===