factory « cfg « JPA Q&A





1. Can I have two databases related session-factory tags in a single hibernate.cfg.xml file?    stackoverflow.com

I have two different databases where I need to connect and update the tables dynamically. But it looks like I cannot keep two sessions related information in configuration file. Is there any way ...

2. Two session-factory in one hibernate.cfg.xml    coderanch.com

Hi, I want to access two databases. I know this can be achieved by creating two XML configuration files and creating two Configuration and SessionFactory objects in the application. But is it possible to have two session-factoy tags in one hibernate.cfg.xml? If yes, then what should be the format of the cfg.cml and how to access two SessionFactory objects. Thanks in ...

3. Multiple instances in hibernate.cfg.    forum.hibernate.org

...