Skip to content

Commit

Permalink
fix description of type() function (#8401)
Browse files Browse the repository at this point in the history
  • Loading branch information
gavinking committed May 18, 2024
1 parent f32c9e6 commit 7a315b0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)` | ✖
Expand All @@ -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]]
Expand Down

0 comments on commit 7a315b0

Please sign in to comment.