| Author |
Mutiple DBs and one Session Factory???
|
Thillai Sakthi
Ranch Hand
Joined: Jun 17, 2000
Posts: 91
|
|
Hi All: I am new to hibernate. Need a quick help please......... I wish to show a report joining two tables - these tables are in different databases. As multiple DBs are used, I have created two .cfg.xml files and loaded them manually for Configuration and SessionFactories.... With two different SessionFactories, dont know how do I query and get data??? Any help would be highly appreciated.
|
Regards,<br /> <br />Shakthi
|
 |
Paul Sturrock
Bartender
Joined: Apr 14, 2004
Posts: 10336
|
|
|
Hibernate cannot map related tables where the tables are in two different DBs. You need to look at your DB docs about cross database relationships.
|
JavaRanch FAQ HowToAskQuestionsOnJavaRanch
|
 |
 |
|
|
subject: Mutiple DBs and one Session Factory???
|
|
|