From f5741e9b7ed83a4c21ed42f255867b019d425688 Mon Sep 17 00:00:00 2001 From: Christian Beikov Date: Thu, 2 Mar 2023 12:23:50 +0100 Subject: [PATCH] Revert "HHH-14772: Fix filter direct fetching documentation" This reverts commit 446908f643a301a78aa6b20f7eb4cf456ffcb69e. --- .../main/asciidoc/userguide/chapters/pc/PersistenceContext.adoc | 2 +- .../userguide/chapters/pc/extras/pc-filter-entity-example.sql | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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