openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shay Banon <>
Subject Perform automatic drop and create db schema
Date Tue, 02 Jan 2007 20:34:45 GMT

I am trying to figure out how to configure OpenJPA to perform drop and then
create the db schema. I got as far as:

<property name="openjpa.jdbc.SynchronizeMappings" value="buildSchema" />

Which causes the schema to be created, but does not drop it when the EMF
closes (or when a new EMF starts).

The main reason I want it for is for simple tests, where each tests works
against a fresh copy of the database.

I tried doing things like: buildSchema(SchemaTool=drop) and things in that
nature, but have not managed to find the correct configuration (don't have
much time to dive into the OpenJPA code, sorry for that).

View this message in context:
Sent from the open-jpa-dev mailing list archive at

View raw message