title: Records not getting updated when PreUpdate listener is used in Hibernate
body: <p>I am  using preupdate event listener concept in my database implemention. </p>
  
  <p>When I am adding listener as below the contenst in DB not getting updated.</p>
  
  <pre><code>&lt;property name="eventListeners"&gt;
    &lt;map&gt;
      &lt;entry key="post-load"&gt;
        &lt;list&gt;
          &lt;ref local="cisAuditLoadEventListener" /&gt;
        &lt;/list&gt;
      &lt;/entry&gt;
      &lt;entry key="pre-update"&gt;
        &lt;list&gt;
          &lt;ref local="cisAuditLoadEventListener" /&gt;
        &lt;/list&gt;
      &lt;/entry&gt;
  &lt;/property&gt;
  </code></pre>
  
  <p>When I remove this listener (pre-update), update working fine.</p>
  
  <p>In this pre-update listener i am inserting some records in db like audit records. I am able to insert them. But unable to update the records i want.</p>
  
  <p>Below is the method i am overriding in a class which implements PreUpdateEventListener.</p>
  
  <pre><code>/*
   * (non-Javadoc)
   * 
   * @see
   * org.hibernate.event.PreUpdateEventListener#onPreUpdate(org.hibernate.event
   * .PreUpdateEvent)
   */
   @Override
   public boolean onPreUpdate(PreUpdateEvent event)
   {
  
      //insert data in db
   }
  </code></pre>
  
  <p>Can any one help me regarding this problem.</p>
  
  <p>Thanks,</p>
  
  <p>Narendra</p>