Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 38666 invoked from network); 9 Mar 2008 19:57:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Mar 2008 19:57:20 -0000 Received: (qmail 66126 invoked by uid 500); 9 Mar 2008 19:57:17 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 65945 invoked by uid 500); 9 Mar 2008 19:57:17 -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 65936 invoked by uid 99); 9 Mar 2008 19:57:16 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 09 Mar 2008 12:57:16 -0700 X-ASF-Spam-Status: No, hits=-1998.0 required=10.0 tests=ALL_TRUSTED,URIBL_BLACK X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 09 Mar 2008 19:56:28 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 44E53234C086 for ; Sun, 9 Mar 2008 12:55:46 -0700 (PDT) Message-ID: <197230599.1205092546270.JavaMail.jira@brutus> Date: Sun, 9 Mar 2008 12:55:46 -0700 (PDT) From: "Adam Hardy (JIRA)" To: dev@openjpa.apache.org Subject: [jira] Updated: (OPENJPA-534) event listener not firing In-Reply-To: <1296532646.1205090147618.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-534?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Adam Hardy updated OPENJPA-534: ------------------------------- Attachment: jpabug.zip All the dependencies are in target/dependency. It's set up with H2 The test creates a new database, creates a table, and inserts a row. Then it launches openJpa and retrieves the entity mapped to the row. It modifies the entity and persists it. A quick test shows that the callback was not fired. > event listener not firing > ------------------------- > > Key: OPENJPA-534 > URL: https://issues.apache.org/jira/browse/OPENJPA-534 > Project: OpenJPA > Issue Type: Bug > Affects Versions: 1.1.0 > Environment: Linux 2.6, jdk1.5.0_12, Derby > Reporter: Adam Hardy > Attachments: jpabug.zip > > > I have a superclass with several properties, including 'modified', a datetime field which a prepersistlistener should update. > All my entities inherit this superclass. > The superclass is mapped with the appropriate prepersist listener identifying the callback method to call. > access="FIELD"> > > > > > > > > DATE > > > > DATE > > > > > > > The method prePersistCallBack() is on the superclass: > public void prePersistCallBack() > { > this.setModified(new Date()); > logger.info("doing prePersistCallBack()"); > } > I see no logging and I see the SQL statement contains the untouched modified value. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.