HHH-8558 - Bytecode enhancer: skip creation of proxy factory

This commit is contained in:
barreiro 2015-06-19 04:44:28 +01:00 committed by Steve Ebersole
parent 8053fa7698
commit 9352546006
1 changed files with 2 additions and 2 deletions

View File

@ -153,7 +153,7 @@ public abstract class AbstractEntityTuplizer implements EntityTuplizer {
instantiator = buildInstantiator( mappingInfo ); instantiator = buildInstantiator( mappingInfo );
if ( entityMetamodel.isLazy() ) { if ( entityMetamodel.isLazy() && !entityMetamodel.isLazyLoadingBytecodeEnhanced() ) {
proxyFactory = buildProxyFactory( mappingInfo, idGetter, idSetter ); proxyFactory = buildProxyFactory( mappingInfo, idGetter, idSetter );
if ( proxyFactory == null ) { if ( proxyFactory == null ) {
entityMetamodel.setLazy( false ); entityMetamodel.setLazy( false );
@ -657,7 +657,7 @@ public abstract class AbstractEntityTuplizer implements EntityTuplizer {
@Override @Override
public boolean hasProxy() { public boolean hasProxy() {
return entityMetamodel.isLazy(); return entityMetamodel.isLazy() && !entityMetamodel.isLazyLoadingBytecodeEnhanced();
} }
@Override @Override