Hi,
what is the standard practice when working with two or more databases? I am reading the documentation but working with more than one database is more of a footnote than a center topic in the hibernate referance.
My question is how do you deal "cleanly" with multiple databases, I am very satisfied with the DAO approach found here
http://www.hibernate.org/328.html are there any examples for multiple databases?
The problem is this there will be some entities in our HRM database and some entities in the Finance database but the application need to use both of this resources, does that mean I will have to have seperate HibernateUtils? Seperate DAOFactories? There will be then 2 distinct sessions(one for HRM Database and one for Finance)?
the getCurrentSession() of the HRM SessionFactory will not interfiere with getCurrentSession() of the Finance SessionFactory?