From dev-return-5312-apmail-openjpa-dev-archive=openjpa.apache.org@openjpa.apache.org Tue Aug 07 17:22:27 2007 Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 46433 invoked from network); 7 Aug 2007 17:22:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 Aug 2007 17:22:25 -0000 Received: (qmail 71313 invoked by uid 500); 7 Aug 2007 17:22:19 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 71290 invoked by uid 500); 7 Aug 2007 17:22:19 -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 71229 invoked by uid 99); 7 Aug 2007 17:22:19 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Aug 2007 10:22:19 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Aug 2007 17:22:19 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 8C1BC7141FE for ; Tue, 7 Aug 2007 10:21:59 -0700 (PDT) Message-ID: <18309316.1186507319571.JavaMail.jira@brutus> Date: Tue, 7 Aug 2007 10:21:59 -0700 (PDT) From: "Patrick Linskey (JIRA)" To: dev@openjpa.apache.org Subject: [jira] Updated: (OPENJPA-89) Bulk delete fails to delete owned many-to-many relationship (entry remains in join table) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/OPENJPA-89?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Patrick Linskey updated OPENJPA-89: ----------------------------------- Fix Version/s: (was: 0.9.8) > Bulk delete fails to delete owned many-to-many relationship (entry remains in join table) > ----------------------------------------------------------------------------------------- > > Key: OPENJPA-89 > URL: https://issues.apache.org/jira/browse/OPENJPA-89 > Project: OpenJPA > Issue Type: Sub-task > Components: kernel > Environment: Using Apache Derby (10.2.1.6) > Reporter: David Ezzio > Assignee: Srinivasa > Attachments: BugOJPA-89.zip > > > When executing the statement > em.createQuery("delete from Subject").executeUpdate(); > where Subject is in a many-to-many relationship with Book, and Subject owns the relationship, one expects that the corresponding entry in the SUBJECT_BOOK table would be deleted. This happens when bulk deleting one-to-many relationships that are mapped with a join table, as well as for *-to-one relationships mapped with a foreign key. It also happens when individually deleting objects. However, it does not happen when bulk deleting the owning side of a many-to-many relationship. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.