-
1. Re: Persistence Extension & hibernate.hbm2ddl.auto
rkilcoyne Dec 30, 2011 8:30 PM (in response to rkilcoyne)I answered this myself -- just saw the configuration in arquillian.xml.
-
2. Re: Persistence Extension & hibernate.hbm2ddl.auto
dan.j.allen Jan 3, 2012 9:24 PM (in response to rkilcoyne)1 of 1 people found this helpfulCould you post which configuration property you used to satisfy your use case?
I'm guessing that it's the initStatement and/or cleanupStatement, but I don't want to presume.
Btw, here's the PersistenceConfiguration class which shows the available properties.
-
3. Re: Persistence Extension & hibernate.hbm2ddl.auto
bmajsak Jan 4, 2012 5:24 PM (in response to rkilcoyne)1 of 1 people found this helpfulHi Rick,
indeed you don't have to this feature enabled in the persistence context. If you have some custom logic for creating schema you can use initStatement and/or cleanupStatement if you are running your tests against clean database, as Dan already pointed out.
Cheers,
Bartosz
-
4. Re: Persistence Extension & hibernate.hbm2ddl.auto
rkilcoyne Jan 4, 2012 5:39 PM (in response to rkilcoyne)Thanks for the response Gentlemen. The initial problem was that I hadn't added the following to my arquillian.xml config file:
<extension qualifier="persistence">
<property name="defaultDataSource">java:jboss/datasources/mmediaTestDS</property>
<property name="userTransactionJndi">java:jboss/UserTransaction</property>
</extension>
My latest question is whether or not I can disable the dataset cleanup step at the end of each test execution. And by cleanup I mean the table truncation that takes place each time.