-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: How to disable the lazy loading function globally?
PostPosted: Wed Sep 19, 2007 10:36 pm 
Newbie

Joined: Wed Sep 19, 2007 10:06 pm
Posts: 1
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.