You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by Maxim Solodovnik <so...@gmail.com> on 2013/02/19 04:32:38 UTC

MappingTool schema actions to drop database with Foreign keys

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

Re: MappingTool schema actions to drop database with Foreign keys

Posted by Maxim Solodovnik <so...@gmail.com>.
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 <so...@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

Re: MappingTool schema actions to drop database with Foreign keys

Posted by Maxim Solodovnik <so...@gmail.com>.
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 <so...@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

Re: MappingTool schema actions to drop database with Foreign keys

Posted by Maxim Solodovnik <so...@gmail.com>.
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 <so...@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