Return-Path: Delivered-To: apmail-openjpa-users-archive@minotaur.apache.org Received: (qmail 21066 invoked from network); 9 Mar 2009 19:27:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Mar 2009 19:27:00 -0000 Received: (qmail 24170 invoked by uid 500); 9 Mar 2009 19:26:59 -0000 Delivered-To: apmail-openjpa-users-archive@openjpa.apache.org Received: (qmail 24144 invoked by uid 500); 9 Mar 2009 19:26:59 -0000 Mailing-List: contact users-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@openjpa.apache.org Delivered-To: mailing list users@openjpa.apache.org Received: (qmail 24133 invoked by uid 99); 9 Mar 2009 19:26:59 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Mar 2009 12:26:59 -0700 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of lists+1214986160035-208411@n2.nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Mar 2009 19:26:50 +0000 Received: from tervel.nabble.com ([192.168.236.150]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1Lgl7O-0006QQ-1c for users@openjpa.apache.org; Mon, 09 Mar 2009 12:26:30 -0700 Message-ID: <1236626790042-2451102.post@n2.nabble.com> Date: Mon, 9 Mar 2009 12:26:30 -0700 (PDT) From: hairinwind To: users@openjpa.apache.org Subject: Event was not fired for child entity when cascading deleting happens MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: Dong.Yao@elasticpath.com X-Virus-Checked: Checked by ClamAV on apache.org Event was not fired for child entity when cascading deleting happens. For example, The parent entity has the reference of the child entity and the cascade type is ALL. While save the parent entity, it will also save the child entity. The persist listener is triggered twice. One for parent entity and the other one is for the child entity. But when delete the parent entity, the delete listener is only triggered once for the parent entity. How can I make the listener also be triggered for the child entity? Thanks! -- View this message in context: http://n2.nabble.com/Event-was-not-fired-for-child-entity-when-cascading-deleting-happens-tp2451102p2451102.html Sent from the OpenJPA Users mailing list archive at Nabble.com.