Now I am currently analyzing a complex project which using hibernate as persistent infrastructure, so that need a lot of debugging work.
When I get some object from Hibernate session and before invoking any methods on it, the object is a proxy of the actual object what I need, such as Node$$EnhancerByCGLIB$$9501f8c6. Though I can void the scenario by setting attribute default-lazy to false at the root element of hibernate mapping files, I'm bored with it because I must backup to the initial configuration what the mapping file is.
Is there a global switch that can turn off the lazy loading function in spite of how the lazy loading is configured in individual mapping file? I can turn it on after debugging without any change-restore.
|