The test case for this is MasterDetailTest.testCustomPersister() (same package). See Custom.hbm.xml also. I've been able to run this test case successfully. By default it connects to HSQLDB, creates any required table, runs the tests and then drops the tables. Just make sure you have hsqldb.jar in your classpath.
MasterDetailTest.testCustomPersister() does not really need any tables. I've not tried it, but you could also run by adding the following code in MasterDetailTest.
/**
* @see org.hibernate.test.TestCase#recreateSchema()
*/
protected boolean recreateSchema() {
return false;
}
However this would cause other test cases in MasterDetailTest to fail.
|