Return-Path: X-Original-To: apmail-db-torque-dev-archive@www.apache.org Delivered-To: apmail-db-torque-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 EE9866314 for ; Fri, 15 Jul 2011 15:34:22 +0000 (UTC) Received: (qmail 57687 invoked by uid 500); 15 Jul 2011 15:34:22 -0000 Delivered-To: apmail-db-torque-dev-archive@db.apache.org Received: (qmail 57580 invoked by uid 500); 15 Jul 2011 15:34:22 -0000 Mailing-List: contact torque-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Apache Torque Developers List" Reply-To: "Apache Torque Developers List" Delivered-To: mailing list torque-dev@db.apache.org Received: (qmail 57549 invoked by uid 99); 15 Jul 2011 15:34:21 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Jul 2011 15:34:21 +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, 15 Jul 2011 15:34:20 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 369635925B for ; Fri, 15 Jul 2011 15:34:00 +0000 (UTC) Date: Fri, 15 Jul 2011 15:34:00 +0000 (UTC) From: "Thomas Vandahl (JIRA)" To: torque-dev@db.apache.org Message-ID: <819835599.17596.1310744040220.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <35335111.17505.1310742239889.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (TORQUE-165) Implement cascading deletes MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/TORQUE-165?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13066010#comment-13066010 ] Thomas Vandahl commented on TORQUE-165: --------------------------------------- Well, in my book cascading deletes would be the task of the database. It knows best what to do. Don't you think we should drop this as a feature? I never understood why it was there in the first place. Torque only knows about cascades based on foreign keys anyway. Besides, to be exact, it would be necessary to consider the value of onDelete when implementing this. > Implement cascading deletes > --------------------------- > > Key: TORQUE-165 > URL: https://issues.apache.org/jira/browse/TORQUE-165 > Project: Torque > Issue Type: Improvement > Reporter: Thomas Fox > Assignee: Thomas Fox > > If the flag criteria.cascade is set to true and a detelete() method is called on a peer class, all rows ehich are referenced by the deleted rows should be deleted as well, including rows which are referenced indirectly. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org For additional commands, e-mail: torque-dev-help@db.apache.org