Skip to content

Commit 8f85e6c

Browse files
committed
mention SQL arrays in HQL documentation
1 parent 223855a commit 8f85e6c

File tree

3 files changed

+16
-3
lines changed

3 files changed

+16
-3
lines changed

documentation/src/main/asciidoc/querylanguage/Expressions.adoc

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1169,6 +1169,17 @@ Finally, the following functions evaluate the id, version, or natural id of an e
11691169
Useful with associations annotated `@NotFound`. | ✖
11701170
|===
11711171

1172+
[[array-functions]]
1173+
==== Array, XML, and JSON functions
1174+
1175+
On supported platforms, HQL provides a rich suite of functions for working with:
1176+
1177+
- link:{doc-user-guide-url}#hql-functions-arrays[SQL arrays],
1178+
- link:{doc-user-guide-url}#hql-functions-json[JSON], and
1179+
- link:{doc-user-guide-url}#hql-functions-xml[XML]
1180+
1181+
The use of these functions is outside the scope of this guide.
1182+
11721183
[[embedding-sql]]
11731184
==== Embedding SQL expressions
11741185

@@ -1442,8 +1453,9 @@ This less-than-lovely fragment of the HQL ANTLR grammar tells us that the thing
14421453

14431454
- a list of values enclosed in parentheses,
14441455
- a subquery,
1445-
- one of the collection-handling functions defined <<elements-indices,above>>, or
1446-
- a query parameter,
1456+
- one of the collection-handling functions defined <<elements-indices,above>>,
1457+
- a query parameter, or
1458+
- an expression evaluating to a link:{doc-introduction-url}#arrays[SQL array].
14471459

14481460
The type of the expression on the left, and the types of all the values on the right must be compatible.
14491461

documentation/src/main/asciidoc/querylanguage/From.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ Every explicit association join specifies an entity attribute to be joined.
212212
The specified attribute:
213213

214214
* is usually a `@OneToMany`, `@ManyToMany`, `@OneToOne`, or `@ManyToOne` association, but
215-
* it could be an `@ElementCollection`, and
215+
* it could be an `@ElementCollection`, or even just a link:{doc-introduction-url}#arrays[SQL array], and
216216
* it might even be an attribute of embeddable type.
217217

218218
In the case of an association or collection, the generated SQL will have a join of the same type.

documentation/src/main/asciidoc/querylanguage/extras/predicate_in_bnf.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ inList
55
| "(" (expression ("," expression)*)? ")"
66
| "(" subquery ")"
77
| parameter
8+
| expression

0 commit comments

Comments
 (0)