-->
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: Hibernate mapping issue (hbm files)
PostPosted: Wed Jul 29, 2009 12:54 am 
Newbie

Joined: Wed Jul 29, 2009 12:33 am
Posts: 1
we have fileprofile.hbm.xml , its used by fileprofile and change control module. Also it has associations.

In fileprofile module i need to only load fileprofile not other associated collections.

But Change control, i need to load fileprofile with associations , at the time of loading fileprofile entity itself.

In hbm , we have mentioned lazy="false" and fetch="join" in all associations. Becoz of this , while loading fileprofile its loading all associations . So its taking time to process query in fileprofile module.

If i set lazy="true" ,and remove fetch="join" , its working properly in fileprofile module.


In this case , while loading fileprofile entity in Change control module, its taking more time load the associated childs.


Is it any possible way change this property values during runtime.

or can i go for another of hbm files and entity per each module?

Kindly give me the possible solution


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.