I am trying to use an H2 in memory database to do some testing on my JPA entities. I am still stuck at the point of creating the schema. my persistance unit looks like this
<persistence-unit name="TEST_DS" transaction-type="RESOURCE_LOCAL">
<provider>org.apache.openjpa.persistence.PersistenceProviderImpl</provider>
<class>com.domain.entities.ThisEntity</class>
<properties>
<property name="javax.persistence.jdbc.user" value="sa" />
<property name="javax.persistence.jdbc.password" value="sa" />
<property name="openjpa.ConnectionURL" value="jdbc:h2:mem:test2" />
<property name="openjpa.ConnectionDriverName" value="org.h2.Driver"/>
<property name="openjpa.jdbc.SynchronizeMappings" value="buildSchema(ForeignKeys=true,schemaAction='dropDB,add')" />
</properties>
</persistence-unit>
I have tried various combinations of openjpa & javax.persistance properties without luck.
The exception I get is
org.apache.openjpa.persistence.PersistenceException: Schema "DBM" not found.
The schema exists in my entities