-->
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: Eager fetching and replication
PostPosted: Sat Jun 04, 2005 1:41 pm 
Newbie

Joined: Fri Apr 22, 2005 3:39 pm
Posts: 18
Greetings!

I'm currently need to replicate() subgraphs of objects from one DB to another. I'm searching for a way to effectively initialize a subgraph of objects (possibly proxied), containing multiple collections. Known solutions:

1) use lazy=false. Too poor performance in other cases...
2) Hibernate.initialize() recursivelty. Bad performance: causes n selects
3) eagerly fetch a graph in a single query usin criteria API (setFetchMode), but AFAIK, it can fetch only a single collection per request eagerly.

So waht's the solution if any? :-)
Hibernate definetely needs a way to do it in a single call.

Thanks for your help!

Michael.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jun 04, 2005 3:16 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
Use HB 3.0.5.


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.