From 003c0d0960f450829bdd15d3503c5a9ad78db741 Mon Sep 17 00:00:00 2001 From: Gavin King Date: Fri, 22 Mar 2024 14:41:54 +0100 Subject: [PATCH] mention that tuples can be compared to embeddables in doc --- .../src/main/asciidoc/querylanguage/Expressions.adoc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/documentation/src/main/asciidoc/querylanguage/Expressions.adoc b/documentation/src/main/asciidoc/querylanguage/Expressions.adoc index 3fcb74d468..2ea0e45e59 100644 --- a/documentation/src/main/asciidoc/querylanguage/Expressions.adoc +++ b/documentation/src/main/asciidoc/querylanguage/Expressions.adoc @@ -495,6 +495,15 @@ from Event where (year, day) > (year(local date), day(local date)) This syntax may be used even when the underlying SQL dialect does _not_ support so-called "row value" constructors. +A tuple value may be compared to an embedded field: + +[[tuple-embeddable]] +[source,hql] +---- +from Person +where address = ('1600 Pennsylvania Avenue, NW', 'Washington', 'DC', 20500, 'USA') +---- + [[exp-functions]] === Functions