diff --git a/documentation/src/main/asciidoc/userguide/chapters/pc/PersistenceContext.adoc b/documentation/src/main/asciidoc/userguide/chapters/pc/PersistenceContext.adoc index d0945b7b8d..c455168662 100644 --- a/documentation/src/main/asciidoc/userguide/chapters/pc/PersistenceContext.adoc +++ b/documentation/src/main/asciidoc/userguide/chapters/pc/PersistenceContext.adoc @@ -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`. diff --git a/documentation/src/main/asciidoc/userguide/chapters/pc/extras/pc-filter-entity-example.sql b/documentation/src/main/asciidoc/userguide/chapters/pc/extras/pc-filter-entity-example.sql index aeb9bb001e..b1af7de988 100644 --- a/documentation/src/main/asciidoc/userguide/chapters/pc/extras/pc-filter-entity-example.sql +++ b/documentation/src/main/asciidoc/userguide/chapters/pc/extras/pc-filter-entity-example.sql @@ -10,4 +10,4 @@ SELECT FROM Account a WHERE - a.id = 2 \ No newline at end of file + a.id = 2 and a.active_status = true \ No newline at end of file