From 6fcab0cb54381bb632fad6323a9d7905f12b1200 Mon Sep 17 00:00:00 2001 From: Vlad Mihalcea Date: Thu, 3 Nov 2016 14:31:09 +0200 Subject: [PATCH] HHH-5467 - API documentation for @Fetch(SUBSELECT) is ambiguous. --- .../src/main/java/org/hibernate/annotations/FetchMode.java | 6 +++--- 1 file changed, 3 insertions(+), 3 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 a1b75060f9..fa1e03a764 100644 --- a/hibernate-core/src/main/java/org/hibernate/annotations/FetchMode.java +++ b/hibernate-core/src/main/java/org/hibernate/annotations/FetchMode.java @@ -14,15 +14,15 @@ package org.hibernate.annotations; */ public enum FetchMode { /** - * use a secondary select for each individual entity, collection, or join load. + * Use a secondary select for each individual entity, collection, or join load. */ SELECT, /** - * use an outer join to load the related entities, collections or joins. + * Use an outer join to load the related entities, collections or joins. */ JOIN, /** - * use a secondary select so that, for a given collection, it can load all child entities associated with every parent table record using a single secondary select statement. + * Available for collections only.  When accessing a non-initialized collection, this fetch mode will trigger loading all elements of all collections of the same role for all owners associated with the persistence context using a single secondary select. */ SUBSELECT }