I was also looking to answer this question, and found this yesterday:
http://forum.hibernate.org/viewtopic.ph ... nge+schema
You can make a hibernate.cfg.xml for Oracle, and one for HSQLDB, and flip between them as necessary. In the config file that points to Oracle, put
Code:
<property name="default_schema">PROD</property>
and pull out all the references to schema name in your mapping xml files.
This will work if all the tables you want to hit are in the same schema. Otherwise, there is an API to call during runtime, but I didn't try that.