This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I am developing one Swing application where I need to integrate hibernate. The application has to connect to two databases. Since I am a novice in hibernate, I googled and came to know 2 configuration files are required to accomplish this. As per that I have two sets of:
1. hibernate.cfg.xml and
I created one HibernateUtil class also. But my doubt is how can I get session factory instance of each database?
Also since this is desktop application, so there is no need for pool of connection, what is the configuration in hibernate for that ? (Normally, in most of the sites, I found hibernate configuration files with datasource mapping.)