HHH-14772: Fix filter direct fetching documentation

This commit is contained in:
Akshit Agarwal 2022-10-17 23:43:11 +05:30 committed by Christian Beikov
parent 2d3b787fc0
commit 446908f643
2 changed files with 2 additions and 2 deletions

View File

@ -556,7 +556,7 @@ include::{sourcedir}/FilterTest.java[tags=pc-filter-entity-example]
include::{extrasdir}/pc-filter-entity-example.sql[]
----
As you can see from the example above, contrary to an entity query, the filter does not prevent the entity from being loaded.
As you can see from the example above, just like an entity query, the filter prevents the entity from being loaded.
====
Just like with entity queries, collections can be filtered as well, but only if the filter is explicitly enabled on the currently running Hibernate `Session`.

View File

@ -10,4 +10,4 @@ SELECT
FROM
Account a
WHERE
a.id = 2
a.id = 2 and a.active_status = true