openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Maxim Solodovnik <solomax...@gmail.com>
Subject Re: MappingTool schema actions to drop database with Foreign keys
Date Tue, 04 Jun 2013 02:43:43 GMT
Hello All,

Could you please suggest "OpenJPA way" to drop old DB and to create new one
according current schema?

MappingTool with -schemaAction "retain,drop" is not working since foreign
keys were added

Thanks in advance!


On Tue, Feb 19, 2013 at 10:32 AM, Maxim Solodovnik <solomax666@gmail.com>wrote:

> Hello All,
>
> I was using MappingTool with -schemaAction "retain,drop" to drop database
> before recreation. (To ensure there are no tables/columns from old schema
> in the DB)
>
> Later we have added @ForeignKey annotation to our project and the method
> stops working (Throws lots of exceptions while working)
>
> Is there any way to drop DB managed by OpenJPA which probably contains
> "extra" tables/columns.
>
> I'm using OpenJPA 2.2.1
>
> Thanks in advance
>
> PS send to dev since there was no answer on the user list :(
>
> --
> WBR
> Maxim aka solomax
>



-- 
WBR
Maxim aka solomax

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message