-->
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.  [ 3 posts ] 
Author Message
 Post subject: Lazy initialization
PostPosted: Thu Dec 04, 2003 6:05 am 
Beginner
Beginner

Joined: Thu Sep 25, 2003 10:30 am
Posts: 23
Location: india
Hi,
There is no Lazy initialization for many-to-one and one-to-one. So what happens is the properties which have this attribute gets queried even if not required. I think that this pose a serious problem.
Coz I have this jsp which displays data from different table. Since they have got many-to-one and one-to-one relationship they get queried again and again.
Does anyone have solution for this.
regards
prasad chandrasekaran


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 04, 2003 6:55 am 
Expert
Expert

Joined: Tue Sep 16, 2003 4:06 pm
Posts: 318
Location: St. Petersburg, Russia
Proxies will solve your problem - see documentation regarding this topic and also Delegate pattern ( http://www.hibernate.org/45.html ) which will help to deal with one-to-one mappings


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 04, 2003 6:56 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
correct, with the caveat that you must set constrained="true"


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.