Hibernate Team |
 |
Joined: Tue Aug 26, 2003 3:00 pm Posts: 1816 Location: Austin, TX
|
If I understand your question correctly, you need two seperate Configurations. A Configuration is responsible for generating a SessionFactory. So basically you would just construct two different Configurations (each describing the connection characteristic and class mapped to each of the underlying databases) and then ask each to build a seperate SessionFactory.
You would need to explicitly specify the config file for at least one of these Configurations. Your best bet would be to use a common hibernate.properties for the common config attributes and then to have xml config files for each of the Configuration objects you need to construct.
|
|