openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adam Hardy (JIRA)" <>
Subject [jira] Created: (OPENJPA-534) event listener not firing
Date Sun, 09 Mar 2008 19:15:47 GMT
event listener not firing

                 Key: OPENJPA-534
             Project: OpenJPA
          Issue Type: Bug
    Affects Versions: 1.1.0
         Environment: Linux 2.6, jdk1.5.0_12, Derby
            Reporter: Adam Hardy

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.

  <mapped-superclass class="org.permacode.atomic.domain.AtomicEntity"
    <pre-persist method-name="prePersistCallBack" />
      <basic name="ownerId">
        <column name="OWNER_ID" />
      <basic name="created">
        <column name="CREATED" />
      <basic name="modified">
        <column name="MODIFIED" />
      <version name="version">
        <column name="VERSION" />

The method prePersistCallBack() is on the superclass:

    public void prePersistCallBack()
        this.setModified(new Date());"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.

View raw message