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
|