Skip to content

Commit 2b39aae

Browse files
committed
make it clear that @fetch(JOIN) always takes precedence over fetch=LAZY
1 parent a406357 commit 2b39aae

File tree

1 file changed

+2
-1
lines changed
  • hibernate-core/src/main/java/org/hibernate/annotations

1 file changed

+2
-1
lines changed

hibernate-core/src/main/java/org/hibernate/annotations/Fetch.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@
2727
* overridden in a given {@linkplain FetchProfile fetch profile}.
2828
* <p>
2929
* Note that join fetching is incompatible with lazy fetching, and so
30-
* {@code @Fetch(JOIN)} implies {@code fetch=EAGER}.
30+
* {@code @Fetch(JOIN)} implies {@code fetch=EAGER}, overriding any
31+
* explicitly-specified {@code fetch=LAZY} setting.
3132
*
3233
* @author Emmanuel Bernard
3334
*

0 commit comments

Comments
 (0)