From a7c3e9a4e976f9f2b04a318dcf2ff5a5034aa13a Mon Sep 17 00:00:00 2001 From: Gavin King Date: Thu, 5 Sep 2024 23:10:06 +0200 Subject: [PATCH] document explicitly that filter restrictions are written in SQL Signed-off-by: Gavin King --- documentation/src/main/asciidoc/introduction/Advanced.adoc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/documentation/src/main/asciidoc/introduction/Advanced.adoc b/documentation/src/main/asciidoc/introduction/Advanced.adoc index 06542117eb..a2d299bfeb 100644 --- a/documentation/src/main/asciidoc/introduction/Advanced.adoc +++ b/documentation/src/main/asciidoc/introduction/Advanced.adoc @@ -46,6 +46,8 @@ _Typically_, but not necessarily, a `@FilterDef` specifies a default restriction package org.hibernate.example; ---- +Note that filter restrictions are always written in the native SQL dialect of the database, _not_ in HQL. + The restriction must contain a reference to the parameter of the filter, specified using the usual syntax for named parameters. Any entity or collection which is affected by a filter must be annotated link:{doc-javadoc-url}org/hibernate/annotations/Filter.html[`@Filter`]: