From b1e590c3bcbb749fdeaab6d1058e3f3f1757303c Mon Sep 17 00:00:00 2001 From: Steve Ebersole Date: Fri, 11 Feb 2022 13:26:12 -0600 Subject: [PATCH] HHH-15060 - Associations with @NotFound should always be left joined when de-referenced in HQL/Criteria - `@NotFound` no longer exports a physical foreign-key - tests showing bugs and inconsistencies wrt `@NotFound` handling - added `FetchNotFoundException` - force association to EAGER --- .../src/main/java/org/hibernate/annotations/FetchMode.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hibernate-core/src/main/java/org/hibernate/annotations/FetchMode.java b/hibernate-core/src/main/java/org/hibernate/annotations/FetchMode.java index e630814324..b9ca4abc83 100644 --- a/hibernate-core/src/main/java/org/hibernate/annotations/FetchMode.java +++ b/hibernate-core/src/main/java/org/hibernate/annotations/FetchMode.java @@ -7,8 +7,8 @@ package org.hibernate.annotations; /** - * Fetch options on associations. Defines more of the "how" of fetching, whereas JPA {@link javax.persistence.FetchType} - * focuses on the "when". + * Defines how the association should be fetched, compared to + * {@link javax.persistence.FetchType} which defines when it should be fetched * * @author Emmanuel Bernard */