HHH-8558 - Bytecode enhancer: skip creation of proxy factory
This commit is contained in:
parent
8053fa7698
commit
9352546006
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue