title: When using JPA event listeners, is it possible to inject the actual event?
body: <p>I understand there is the Hibernate way of creating an event listener like this:</p>
  <pre><code>public class ActivityEventListener implements PostInsertEventListener {
    
   @Override
   public void onPostInsert(PostInsertEvent event) {
    //do something
   }
  }
  </code></pre>
  <p>and the JPA way which is like this:</p>
  <pre><code>public class ActivityEventListener {
    
   @PostPersist
   public void onPostPersist(Object entity) {
    //do something
   }
  }
  </code></pre>
  <p>I want to go with the generic JPA solution. Is there some way in JPA to access the actual event (like the hibernate <code>PostInsertEvent </code>) so as to access entity state information about old/current state, findDirty properties etc?</p>