-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Forcing Hibernate to generate tables BEFORE Unitil's process
PostPosted: Tue Nov 27, 2012 9:01 am 
Newbie

Joined: Tue Nov 27, 2012 8:36 am
Posts: 1
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!


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.