noone wrote:
Can hibernate function across multiple schemas using a single SessionFactory? If so how? I think I have to create two SessionFactory objects in order to this ... not sure though.
Thanks for any suggestions/help
As long as the schemas are in the same database, Hibernate has no issue.
you can specify the schema in each mapping file. See section 6.1.2 in the 3.0.5 Documentation.
<hibernate-mapping schema="schameName"....>
..
..
</hibernate-mapping>
This can also be specified at the <class> level and all collection levels.
Do a search on schema= in the docs.