Help

Controls

PermLinkWikiLink

Built with Seam

You can find the full source code for this website in the Seam package in the directory /examples/wiki. It is licensed under the LGPL.

Forum: Seam Users Forum ListTopic List
12. Mar 2008, 01:54 CET | Link

I've edited the following line:

hibernate.hbm2ddl.auto=create

in test/bootstrap/META-INF/persistence.properties but the tables are not truncated before running the test suite

3 Replies:
12. Mar 2008, 11:02 CET | Link

Use

hibernate.hbm2ddl.auto=create-drop
 

Read about how to report a bug.

18. Mar 2008, 18:15 CET | Link

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

19. Mar 2008, 12:19 CET | Link

Maybe look at DBUnit with Seam.

 

Read about how to report a bug.