-->
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.  [ 2 posts ] 
Author Message
 Post subject: Can I add lazy="true" to all tables by default?
PostPosted: Wed Oct 27, 2004 4:09 pm 
Newbie

Joined: Tue Oct 26, 2004 2:12 am
Posts: 11
Hibernate version: 2.1.6

We had some major performance problems with retrieving data from a table with several many-to-one relationships; problem solved by adding lazy="true" to the 'to-one' table.

There are many complex relationships in our data model; a good number of them are on the to-one side of many-to-one relationships. Is it ok to simply add lazy="true" to every table by default? Are there any drawbacks to doing this?
Since we have 105+ tables and the data model is still changing I wonder if I can do this automatically when running middlegen...?

TIA


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 27, 2004 4:31 pm 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
This is quite okay, in fact lazy=true will be always the default in Hibernate3


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

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.