-->
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: object graph spread accross database
PostPosted: Wed Nov 26, 2008 9:38 am 
Newbie

Joined: Wed Nov 26, 2008 7:55 am
Posts: 2
Hi All,

I have two tables namely Person and Dept with many to many relationship between them. Then its obvious that i have access each table from others mapping file.eg. I have to access Person table from Dept.hbm.xml and vice versa.

Now if my two table are are on different databse. I have to create 2 hibernate configuration files. one with Person.hbm.xml and one for dept.hbm.xml.

When I load a sessionfactory with only first config file , i get org.hibernate.MappingException: An association from the table Person refers to an unmapped class: com.db.objectmodel.Dept.

Does hibernate supports such object graph hierarchy? I have looked fo it into hibernate shards but it does not provides support for it,as its meant for horizontal partitioning.

Thanks in advance,
Yogesh kalaskar

_________________
-- yogesh g k


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.