mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-22 11:06:08 +00:00
add a NOTE to make something clearer
This commit is contained in:
parent
9a8f02bd21
commit
971d31d9b0
@ -917,8 +917,6 @@ In case 2, application of the function produces an <<implicit-collection-join,im
|
||||
The next group of functions always accept a compound path referring to a collection or many-valued association of an entity.
|
||||
They're interpreted as referring to the collection as a whole.
|
||||
|
||||
Application of one of these function produces implicit subquery.
|
||||
|
||||
[[collective-collection-functions]]
|
||||
[cols="15,20,~,^15"]
|
||||
|===
|
||||
@ -929,6 +927,7 @@ Application of one of these function produces implicit subquery.
|
||||
| `keys()` | Maps | The keys of a map, collectively | ✖
|
||||
| `values()` | Maps | The values of a map, collectively | ✖
|
||||
|===
|
||||
Application of one of these function produces an implicit subquery or implicit join.
|
||||
|
||||
This query has an implicit join:
|
||||
|
||||
@ -946,6 +945,9 @@ This query has an implicit subquery:
|
||||
select title from Book where 'hibernate' in elements(tags)
|
||||
----
|
||||
|
||||
NOTE: It never makes sense to apply the functions `elements()`, `indices()`, `keys()`, or `values()` to an identification variable or single-valued path expression.
|
||||
These functions must be applied to a reference to a many-valued path expression.
|
||||
|
||||
[discrete]
|
||||
===== Collection sizes
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user