Return-Path: X-Original-To: apmail-openjpa-dev-archive@www.apache.org Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 26519DEC4 for ; Tue, 19 Feb 2013 03:33:10 +0000 (UTC) Received: (qmail 29662 invoked by uid 500); 19 Feb 2013 03:33:09 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 29393 invoked by uid 500); 19 Feb 2013 03:33:09 -0000 Mailing-List: contact dev-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list dev@openjpa.apache.org Received: (qmail 29335 invoked by uid 99); 19 Feb 2013 03:33:07 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Feb 2013 03:33:07 +0000 X-ASF-Spam-Status: No, hits=1.7 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of solomax666@gmail.com designates 209.85.210.51 as permitted sender) Received: from [209.85.210.51] (HELO mail-da0-f51.google.com) (209.85.210.51) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Feb 2013 03:32:59 +0000 Received: by mail-da0-f51.google.com with SMTP id n15so2749323dad.24 for ; Mon, 18 Feb 2013 19:32:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:date:message-id:subject:from:to :content-type; bh=G6SvaHUr5SKTQ2XSlsdjuZoeJvoK54MVEPCR7nL7k0I=; b=rC+PrHld7baqsfcgnc+abQAjycxUnsMf0n7CKQ3JUZN2LKgG+dLw0N851FIU5ThQPt rnAXCTLmfXKs+qoIAGp2ZehMFYFRg54VaT45rT+jkGNbiDN3EYYoSi51KlBBbhCtbYGz avohW8qJKMUllfOcG9GDEVB/4OQ0FGcJgh1iI+31gRL4qhv1mqjiLT/DFi+57wzBJmuD CuDh8kzA6rHctJmbKG9RogG3nBj2Cyf6LkUffOo6o4wCb8V53aHepc6PCzPbZflJJ+O2 OHcD3SUot+S+4SH13T0y7XxLs0sPT1hPp9Kk1Io3oeeIH36GePKFJYXyY8u2PuJqVtXA KL2Q== MIME-Version: 1.0 X-Received: by 10.68.226.67 with SMTP id rq3mr35877806pbc.137.1361244758306; Mon, 18 Feb 2013 19:32:38 -0800 (PST) Received: by 10.66.16.72 with HTTP; Mon, 18 Feb 2013 19:32:38 -0800 (PST) Date: Tue, 19 Feb 2013 10:32:38 +0700 Message-ID: Subject: MappingTool schema actions to drop database with Foreign keys From: Maxim Solodovnik To: dev@openjpa.apache.org, dev Content-Type: multipart/alternative; boundary=e89a8ff251f6456d8f04d60b7ea7 X-Virus-Checked: Checked by ClamAV on apache.org --e89a8ff251f6456d8f04d60b7ea7 Content-Type: text/plain; charset=UTF-8 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 --e89a8ff251f6456d8f04d60b7ea7--