openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shay Banon <kim...@gmail.com>
Subject Re: Perform automatic drop and create db schema
Date Tue, 02 Jan 2007 21:27:48 GMT

Opened up: https://issues.apache.org/jira/browse/OPENJPA-94 .

Thanks!



Marc Prud wrote:
> 
> Shay-
> 
> 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: http://www.nabble.com/Perform- 
>> automatic-drop-and-create-db-schema-tf2909915.html#a8130220
>> Sent from the open-jpa-dev mailing list archive at Nabble.com.
>>
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Perform-automatic-drop-and-create-db-schema-tf2909915.html#a8131090
Sent from the open-jpa-dev mailing list archive at Nabble.com.


Mime
View raw message