diff --git a/documentation/src/main/asciidoc/userguide/chapters/pc/PersistenceContext.adoc b/documentation/src/main/asciidoc/userguide/chapters/pc/PersistenceContext.adoc index 71e26de5e4..c0d01f8fda 100644 --- a/documentation/src/main/asciidoc/userguide/chapters/pc/PersistenceContext.adoc +++ b/documentation/src/main/asciidoc/userguide/chapters/pc/PersistenceContext.adoc @@ -558,7 +558,7 @@ include::{example-dir-pc}/FilterTest.java[tags=pc-filter-entity-example] include::{extrasdir}/pc-filter-entity-example.sql[] ---- -As you can see from the example above, just like an entity query, the filter prevents the entity from being loaded. +As you can see from the example above, contrary to an entity query, the filter does not prevent 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 b1af7de988..aeb9bb001e 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 and a.active_status = true \ No newline at end of file + a.id = 2 \ No newline at end of file