ravi wrote:
create a new session factory for each database and use the appropriate session (conection) while accessing/creating objects.
the curent design pattern is aimed towards one datasource per database
of course you can't expect associations between objects from different databses to work.
Sorry to bother you again but I still don't see what you mean by
use the appropriate session where in my java code will I have to specify the database in use and how ^^;
another thing is : How can I have more than one hibernate.cfg.xml ? isn't this file supposed to be placed in the root on my classes diectory ?