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 246DE96C9 for ; Fri, 3 Feb 2012 16:42:19 +0000 (UTC) Received: (qmail 96683 invoked by uid 500); 3 Feb 2012 16:42:18 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 96246 invoked by uid 500); 3 Feb 2012 16:42:17 -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 96161 invoked by uid 99); 3 Feb 2012 16:42:17 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Feb 2012 16:42:17 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Feb 2012 16:42:15 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 1801118B6FB for ; Fri, 3 Feb 2012 16:41:54 +0000 (UTC) Date: Fri, 3 Feb 2012 16:41:54 +0000 (UTC) From: "Albert Lee (Updated) (JIRA)" To: dev@openjpa.apache.org Message-ID: <1024697250.7996.1328287314099.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (OPENJPA-1760) SchemaAction='refresh,deleteTableContents' incorrectly removes data from ALL DB tables. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/OPENJPA-1760?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Albert Lee updated OPENJPA-1760: -------------------------------- Affects Version/s: 2.2.0 Fix Version/s: (was: 2.2.0) 2.3.0 Move fix version to 2.3.0 in preparation for 2.2.0 release. > SchemaAction='refresh,deleteTableContents' incorrectly removes data from ALL DB tables. > --------------------------------------------------------------------------------------- > > Key: OPENJPA-1760 > URL: https://issues.apache.org/jira/browse/OPENJPA-1760 > Project: OpenJPA > Issue Type: Bug > Components: tooling > Affects Versions: 2.0.0, 2.1.0, 2.2.0 > Environment: Win XP, Postgres 8.4, OpenJPA 2.0.0 > Reporter: Oliver Bayer > Priority: Minor > Fix For: 2.3.0 > > Attachments: OPENJPA-1760_testcase.patch > > > At my usecase not all tables are managed by openjpa so not all of them are listed with the class-tag inside persistence.xml. I set up openjpa to delete the table contents for developping with the following property: > > But now all contents are deleted even the one of tables which aren't listed inside persistence.xml. > Shouldn't openjpa only delete contents from tables which are configured plus the openjpa_sequence_table rather than deleting all contents from the whole database? Is this a bug or is there a property which I have to set to get the described behaviour? > Greets Oli -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira