Senior |
|
Joined: Wed Aug 17, 2005 12:56 pm Posts: 136 Location: Erie, PA (USA)
|
I assumed you wanted to make multiple entries for the same mapping -- in that case you need multiple session factories. You only need to duplicate the .cfg.xml file - one for each session factory. Then, you have to deal with building multiple session factories and retrieving sessions from the correct one, etc.
If you want to access multiple databases as if they were one db, I don't know how to handle that with Hibernate. You should probably be looking to solve the problem at the db level (aliases or other things to unify the databases).
Good luck,
Curtis ...
|
|