Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 30082 invoked from network); 16 Mar 2010 14:15:51 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 16 Mar 2010 14:15:51 -0000 Received: (qmail 69285 invoked by uid 500); 16 Mar 2010 14:15:50 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 69253 invoked by uid 500); 16 Mar 2010 14:15:50 -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 69240 invoked by uid 99); 16 Mar 2010 14:15:50 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Mar 2010 14:15:50 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Mar 2010 14:15:48 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 512A6234C48D for ; Tue, 16 Mar 2010 14:15:27 +0000 (UTC) Message-ID: <281389234.289061268748927331.JavaMail.jira@brutus.apache.org> Date: Tue, 16 Mar 2010 14:15:27 +0000 (UTC) From: "Donald Woods (JIRA)" To: dev@openjpa.apache.org Subject: [jira] Updated: (OPENJPA-935) Removing entities with Embedded field issue multiple delete statements In-Reply-To: <1962924059.1235217601757.JavaMail.jira@brutus> 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-935?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Donald Woods updated OPENJPA-935: --------------------------------- Fix Version/s: (was: 2.0.0) 2.0.0-M2 1.1.1 > Removing entities with Embedded field issue multiple delete statements > ---------------------------------------------------------------------- > > Key: OPENJPA-935 > URL: https://issues.apache.org/jira/browse/OPENJPA-935 > Project: OpenJPA > Issue Type: Bug > Components: jpa > Affects Versions: 1.2.0 > Reporter: Marcin Tomasik > Assignee: Pinaki Poddar > Fix For: 1.1.1, 2.0.0-M2 > > > > I have a following beans: > > > > @Embeddable > > class A { > > int field1 > > } > > > > @Entity > > class B { > > @Id > > long id; > > > > int field2 > > > > @Embedded > > A field3 > > } > > > > When I trying to delete all instances of B entity from data storage by > > "delete from B" I got: > > > > 1. Query ("select" statement) for all B instances > > 2. For each instance from 1. delete statement > > > > Why this is not delete by simple "delete from B" sql statement? -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.