From dev-return-4990-apmail-openjpa-dev-archive=openjpa.apache.org@openjpa.apache.org Fri Jul 20 20:04:28 2007 Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 7167 invoked from network); 20 Jul 2007 20:04:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 20 Jul 2007 20:04:27 -0000 Received: (qmail 99997 invoked by uid 500); 20 Jul 2007 20:04:29 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 99839 invoked by uid 500); 20 Jul 2007 20:04:28 -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 99830 invoked by uid 99); 20 Jul 2007 20:04:28 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Jul 2007 13:04:28 -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; Fri, 20 Jul 2007 13:04:26 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 6257171420F for ; Fri, 20 Jul 2007 13:04:06 -0700 (PDT) Message-ID: <18715112.1184961846399.JavaMail.jira@brutus> Date: Fri, 20 Jul 2007 13:04:06 -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: ----------------------------------- Issue Type: Sub-task (was: Bug) Parent: OPENJPA-290 > 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: Marc Prud'hommeaux > Fix For: 0.9.8 > > 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.