This content has been marked as final.
Show 3 replies
-
1. Re: truncate table before running test suite
pmuir Mar 12, 2008 11:02 AM (in response to reyjexter.reyjexter.gmail.com)Use
hibernate.hbm2ddl.auto=create-drop
-
2. Re: truncate table before running test suite
reyjexter.reyjexter.gmail.com Mar 18, 2008 6:15 PM (in response to reyjexter.reyjexter.gmail.com)tried that one but it didnt work. i even tried using some really weird parameters on that test/bootstrap/META-INF/persistence.properties file to see if the persistence.properties is used but the test finished without any error.
i'm not sure but i dont think the persistence.properties is used. i tried modifying the persistence.xml on ejb/ejbModule/META-INF/persistence.xml (modified the hibernate.hbm2ddl.auto value to create/create-drop) and it did the job.
the only problem now is that same setting is used by both the deploy and test and what i need is to make the deploy use update hbm2ddl while the test should use create or create-drop
btw i'm using jboss 4.2.2 GA, seam 2.0.1 GA and jboss tools 2.0.0 GA
-
3. Re: truncate table before running test suite
pmuir Mar 19, 2008 12:19 PM (in response to reyjexter.reyjexter.gmail.com)Maybe look at DBUnit with Seam.