From 9abb3b45de2d2e19f20409dd9b242ed9a093ca58 Mon Sep 17 00:00:00 2001 From: Andrea Boriero Date: Thu, 22 Jun 2023 12:00:48 +0200 Subject: [PATCH] HHH-16820 updated userguide --- .../asciidoc/userguide/chapters/fetching/Fetching.adoc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/documentation/src/main/asciidoc/userguide/chapters/fetching/Fetching.adoc b/documentation/src/main/asciidoc/userguide/chapters/fetching/Fetching.adoc index 5a5e9cd73a..844c56bea4 100644 --- a/documentation/src/main/asciidoc/userguide/chapters/fetching/Fetching.adoc +++ b/documentation/src/main/asciidoc/userguide/chapters/fetching/Fetching.adoc @@ -455,6 +455,13 @@ most of the time, a DTO projection or a `JOIN FETCH` is a much better alternativ it allows you to fetch all the required data with a single query. ==== +[NOTE] +==== +When `LockModeType` is different from `NONE` Hibernate will not execute a batch fetching so uninitialized entity proxies will not be initialized. + +This because the lock mode is different from the one of the proxies in the batch fetch queue. +==== + [[fetching-fetch-annotation]] === The `@Fetch` annotation mapping