-->
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: navigating a multi-database object graph
PostPosted: Wed Jan 24, 2007 12:08 pm 
Newbie

Joined: Wed Jan 24, 2007 11:45 am
Posts: 1
Good day!

I'm hoping for an out-of-the-box solution to navigating an object graph that is persisted across several databases.

The software under development is using Hibernate to map to legacy databases where relationships span multiple databases (six in this case).

I'm trying to provide a general access solution to higher tiers by making the objects navigable in as natural a way possible. However, at the data access level, there is no way to know to what extend a client process will need to navigate the graph.

Lazy loading appears to be the best solution here. But I don't see a way to do that directly for cross-db relationships.

For example say A-->B-->C and A,B are in DB1 but C is in DB2. If a client process has a reference to A, it might get a proxy when it calls A.getB(). But what is the best approach to providing A.getB().getC() ? C is only available via a different session since it is persisted to a different DB.

As I said, I'm hoping for an out-of-the-box solution but I would appreciate any thoughts about good roads to explore.

TIA,

-dub


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:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.