Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hibernate Commnication between two database

 
shubhranshu swain
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For that you will need to configure two SessionFactories, one for each data base.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic