Hi Stephen,
I fear you'll making you're live much more complicate than it is. You're definitly on the right pass. The catalog attribute is nothing more than the thing you call a database base.
So if you use one SessionFactory and must map you're table like the following:
Code:
<class name="myClass1" table="firstTable" schema="myApp" catalog="database1" ....
<class name="myClass2" table="secondTable" schema="myApp" catalog="database2" ...
This will create full qualified select statements like
Code:
select XYZ from database1.myApp.firstTable left join on database2.myApp.secondTable...
By the way, if you want to separate you're data for design reasons only, I would prefer using different schema over different databases.
Greetings
Joerg