fix description of type() function (#8401)

This commit is contained in:
Gavin King 2024-05-18 16:18:08 +02:00 committed by GitHub
parent f32c9e6e36
commit 7a315b0d8d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -543,7 +543,7 @@ The following special functions make it possible to discover or narrow expressio
|===
| Special function | Purpose | Signature | JPA standard
| `type()` | The (concrete) entity name | `type(e)` | ✔
| `type()` | The (concrete) entity type | `type(e)` | ✔
| `treat()` | Narrow an entity type | `treat(e as Entity)` | ✔
| `cast()` | Narrow a basic type | `cast(x as Type)` | ✖
| `str()` | Cast to a string | `str(x)` | ✖
@ -555,7 +555,7 @@ Let's see what these functions do.
[discrete]
===== Evaluating an entity type
The function `type()`, applied to an identification variable, evaluates to the entity name of the referenced entity.
The function `type()`, applied to an identification variable or entity-valued path expression, evaluates to the concrete type, that is, the Java `Class`, of the referenced entity.
This is mainly useful when dealing with entity inheritance hierarchies.
[[entity-type-exp-example]]