fix description of type() function (#8401)
This commit is contained in:
parent
f32c9e6e36
commit
7a315b0d8d
|
@ -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]]
|
||||
|
|
Loading…
Reference in New Issue