openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dain Sundstrom <d...@iq80.com>
Subject Re: Drop and recreate tables or clear tables?
Date Sat, 11 Aug 2007 17:13:13 GMT
Thanks.  That is exactly what I needed.  Is there a dropTables schema  
option?

For anyone reading the archives, this is the value I'm using:

   buildSchema(SchemaAction='add,deleteTableContents',ForeignKeys=true)

-dain

On Aug 10, 2007, at 6:02 PM, Patrick Linskey wrote:

> To add any schema elements that don't exist and then delete all rows
> from all mapped tables, do:
>
> openjpa.jdbc.SynchronizeMappings:
> buildSchema(SchemaAction='add,deleteTableContents')
>
> -Patrick
>
> On 8/10/07, Dain Sundstrom <dain@iq80.com> wrote:
>> Reading the archives it sounds like drop and recreate table support
>> was added along with support for clear tables.  Unfortunately, I
>> can't find any definitive docs on how I turn this on.  Can anyone
>> tell me the exact property settings to turn either of these two
>> features on?
>>
>> Thanks,
>>
>> -dain
>>
>
>
> -- 
> Patrick Linskey
> 202 669 5907


Mime
View raw message