extract a method (very minor)
This commit is contained in:
parent
0897a90a9e
commit
ffe13dde30
|
@ -1485,15 +1485,7 @@ public class EntityBinder {
|
|||
final Proxy proxy = annotatedClass.getAnnotation( Proxy.class );
|
||||
if ( proxy != null ) {
|
||||
lazy = proxy.lazy();
|
||||
if ( !lazy ) {
|
||||
proxyClass = null;
|
||||
}
|
||||
else {
|
||||
final ReflectionManager reflectionManager = context.getBootstrapContext().getReflectionManager();
|
||||
proxyClass = isDefault( reflectionManager.toXClass(proxy.proxyClass() ), context )
|
||||
? annotatedClass
|
||||
: reflectionManager.toXClass(proxy.proxyClass());
|
||||
}
|
||||
proxyClass = lazy ? proxyClass( proxy ) : null;
|
||||
}
|
||||
else {
|
||||
lazy = true; //needed to allow association lazy loading.
|
||||
|
@ -1501,6 +1493,12 @@ public class EntityBinder {
|
|||
}
|
||||
}
|
||||
|
||||
private XClass proxyClass(Proxy proxy) {
|
||||
final ReflectionManager reflectionManager = context.getBootstrapContext().getReflectionManager();
|
||||
final XClass proxyClass = reflectionManager.toXClass( proxy.proxyClass() );
|
||||
return isDefault( proxyClass, context ) ? annotatedClass : proxyClass;
|
||||
}
|
||||
|
||||
public void bindWhere() {
|
||||
final Where where = getOverridableAnnotation( annotatedClass, Where.class, context );
|
||||
if ( where != null ) {
|
||||
|
|
Loading…
Reference in New Issue