With Hibernate, I use Unitils [http://www.unitils.org/] for unit-testing the database. In database unit-testing, it's very useful to disable all constraints e.g. foreign-keys to avoid large not-related data in test-case. Unitils can do this at http://www.unitils.org/tutorial-dbmaintain.html.
In my case, Hibernate successfuly can generate tables from mapped classes into an in-memory hsqldb. But the problem is, it generates these tables AFTER Unitil's constraints disabling.
I would like to tell to Hibernate to generate tables sooner BEFORE Unitil's constraints disabling. any idea please?
Thanks in advance!
|