It should have something to do with the hasUnitializedLazyProperties method on the PojoEntityTuplizer class This one returns different values for Hibernate 3.3.2.GA and Hibernate 4.2.11.Final.
So probably the EntityMetaModel contains other information concerning the lazyness.
/*** {@inheritDoc}
*/ @Override public boolean hasUninitializedLazyProperties(Object entity) { if ( getEntityMetamodel().hasLazyProperties() ) { FieldInterceptor callback = FieldInterceptionHelper.extractFieldInterceptor( entity ); return callback != null && !callback.isInitialized(); }
else { return false; }
}
Will try to digg deeper into this tomorrow...
|