document explicitly that filter restrictions are written in SQL
Signed-off-by: Gavin King <gavin@hibernate.org>
This commit is contained in:
parent
35f96d6e90
commit
a7c3e9a4e9
|
@ -46,6 +46,8 @@ _Typically_, but not necessarily, a `@FilterDef` specifies a default restriction
|
||||||
package org.hibernate.example;
|
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.
|
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`]:
|
Any entity or collection which is affected by a filter must be annotated link:{doc-javadoc-url}org/hibernate/annotations/Filter.html[`@Filter`]:
|
||||||
|
|
Loading…
Reference in New Issue