This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Object Relational Mapping and the fly likes Hibernate Commnication between two database Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Hibernate Commnication between two database" Watch "Hibernate Commnication between two database" New topic
Author

Hibernate Commnication between two database

shubhranshu swain
Greenhorn

Joined: Dec 14, 2010
Posts: 3
Folks,

I am using hibernate for my current project. I have two databases in MySql say demo1 and demo2.
I want to make communication between these 2 databases. Get data from a table in demo1 check the data in another table in demo2 and insert it demo1.

Thanks
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

For that you will need to configure two SessionFactories, one for each data base.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Hibernate Commnication between two database