openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marc Prud'hommeaux <>
Subject Re: Perform automatic drop and create db schema
Date Tue, 02 Jan 2007 20:40:16 GMT

Unfortunately, we don't have any automatic drop-table feature, but I  
agree it would be handy (you might want to make a JIRA report with  
the suggestion).

The only other recourse, I think, would be to just manually delete  
the database files before running your tests.

On Jan 2, 2007, at 3:34 PM, Shay Banon wrote:

> 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).
> Cheers,
> Shay
> -- 
> View this message in context: 
> automatic-drop-and-create-db-schema-tf2909915.html#a8130220
> Sent from the open-jpa-dev mailing list archive at

View raw message