HHH-16794 With Bytecode enhancement a lazy ManyToOne association targeting an Entity annotated with @Proxy(lazy = false) is eagerly loaded
This commit is contained in:
parent
1351b87552
commit
9a3852b97a
|
@ -401,9 +401,9 @@ public class EntityMetamodel implements Serializable {
|
|||
|
||||
lazy = persistentClass.isLazy() && (
|
||||
// TODO: this disables laziness even in non-pojo entity modes:
|
||||
!persistentClass.hasPojoRepresentation() ||
|
||||
!isFinalClass( persistentClass.getProxyInterface() )
|
||||
);
|
||||
!persistentClass.hasPojoRepresentation() || !isFinalClass( persistentClass.getProxyInterface() ) )
|
||||
|| bytecodeEnhancementMetadata.isEnhancedForLazyLoading();
|
||||
|
||||
mutable = persistentClass.isMutable();
|
||||
if ( persistentClass.isAbstract() == null ) {
|
||||
// legacy behavior (with no abstract attribute specified)
|
||||
|
|
Loading…
Reference in New Issue