From 87707e218b0f1116fd82753ffe1df6a49e79ec6a Mon Sep 17 00:00:00 2001 From: barreiro Date: Fri, 1 Apr 2016 05:22:31 +0100 Subject: [PATCH] HHH-10551 - Enable lazy loading for attributes of bytecode enhanced entities --- .../main/java/org/hibernate/tuple/entity/EntityMetamodel.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hibernate-core/src/main/java/org/hibernate/tuple/entity/EntityMetamodel.java b/hibernate-core/src/main/java/org/hibernate/tuple/entity/EntityMetamodel.java index 88b07dff82..30e5f18d56 100644 --- a/hibernate-core/src/main/java/org/hibernate/tuple/entity/EntityMetamodel.java +++ b/hibernate-core/src/main/java/org/hibernate/tuple/entity/EntityMetamodel.java @@ -201,7 +201,7 @@ public class EntityMetamodel implements Serializable { sessionFactory, i, prop, - instrumentationMetadata.isInstrumented() + instrumentationMetadata.isInstrumented() || lazyLoadingBytecodeEnhanced ); } else { @@ -210,7 +210,7 @@ public class EntityMetamodel implements Serializable { sessionFactory, i, prop, - instrumentationMetadata.isInstrumented() + instrumentationMetadata.isInstrumented() || lazyLoadingBytecodeEnhanced ); }