Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 52242 invoked from network); 1 Feb 2008 02:19:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Feb 2008 02:19:31 -0000 Received: (qmail 72346 invoked by uid 500); 1 Feb 2008 02:19:22 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 72308 invoked by uid 500); 1 Feb 2008 02:19:22 -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 72295 invoked by uid 99); 1 Feb 2008 02:19:22 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 31 Jan 2008 18:19:22 -0800 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, 01 Feb 2008 02:19:03 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 705C571403C for ; Thu, 31 Jan 2008 18:19:10 -0800 (PST) Message-ID: <21140928.1201832350426.JavaMail.jira@brutus> Date: Thu, 31 Jan 2008 18:19:10 -0800 (PST) From: "Patrick Linskey (JIRA)" To: dev@openjpa.apache.org Subject: [jira] Commented: (OPENJPA-506) PreRemove method callback is never called; PreUpdate is always called In-Reply-To: <10477058.1201804990731.JavaMail.jira@brutus> 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-506?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12564586#action_12564586 ] Patrick Linskey commented on OPENJPA-506: ----------------------------------------- Resolved in 1.0.x; keeping open pending 1.1.0 resolution. > PreRemove method callback is never called; PreUpdate is always called > --------------------------------------------------------------------- > > Key: OPENJPA-506 > URL: https://issues.apache.org/jira/browse/OPENJPA-506 > Project: OpenJPA > Issue Type: Bug > Affects Versions: 1.1.0 > Environment: Windows XP, JDK1.5, JDK6, PostgreSQL > Reporter: Miroslav Nachev > Fix For: 1.1.0 > > > I am using EntityListeners to catch Insert, Update and Delete events. During my test case I notice that PreRemove method callback is never called. In the same time PreUpdate is always called whether Delete (em.remove()) or Insert is called. > In my opinion Pre/Post Persist must be called on Insert operations. Pre/Post Update must be called on Update operations. Pre/Post Remove must be called on Delete operations. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.