title: Why doesn't interceptor's onLoad() work?
body: <p>We have a jboss based system</p>
  
  <p>persistance.xml looks like a following:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;persistence xmlns="http://java.sun.com/xml/ns/persistence"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://java.sun.com/xml/ns/persistence
          http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd" version="1.0"&gt;
      &lt;persistence-unit name="solutions" transaction-type="JTA"&gt;
          &lt;jta-data-source&gt;java:/mam&lt;/jta-data-source&gt;
  
          &lt;class&gt;....&lt;/class&gt;
          ......
          &lt;class&gt;....&lt;/class&gt;
  
          &lt;exclude-unlisted-classes&gt;true&lt;/exclude-unlisted-classes&gt;
          &lt;properties&gt;
  
              &lt;property name="hibernate.connection.datasource" value="java:/mam"/&gt;
              &lt;property name="jboss.entity.manager.factory.jndi.name" value="java:/solutions"/&gt;
  
              &lt;property name="hibernate.ejb.interceptor"
                        value="interceptor.AuditAndDeletableCatcherInterceptor"/&gt;
  
              &lt;property name="hibernate.hbm2ddl.auto" value="validate"/&gt;
              &lt;property name="hibernate.show_sql" value="false"/&gt;
              &lt;property name="hibernate.format_sql" value="false"/&gt;
              &lt;property name="hibernate.use_sql_comments" value="false"/&gt;
              &lt;property name="hibernate.generate_statistics" value="false"/&gt;
  
              &lt;property name="hibernate.bytecode.use_reflection_optimizer" value="cglib"/&gt;
              &lt;property name="hibernate.dialect" value="com.magenta.componentization.audit.sql.MySQL5CustomDialect"/&gt;
              &lt;property name="hibernate.query.substitutions" value="true 1, false 0"/&gt;
              &lt;property name="hibernate.connection.provider_class"
                        value="org.hibernate.connection.DatasourceConnectionProvider"/&gt;
              &lt;property name="hibernate.current_session_context_class" value="thread"/&gt;
  
              &lt;property name="cache.provider_class" value="org.hibernate.cache.NoCacheProvider"/&gt;
          &lt;/properties&gt;
      &lt;/persistence-unit&gt;
  
  &lt;/persistence&gt;
  </code></pre>
  
  <p>Interceptor's code:</p>
  
  <pre><code>public class AuditAndDeletableCatcherInterceptor extends AuditInterceptor {
  
      DeletableCatcherDeligate deletableCatcherDeligate =
              new DeletableCatcherDeligate();
  
      @Override
      public boolean onLoad(Object o, Serializable serializable, Object[] objects, String[] strings, Type[] types) {
          deletableCatcherDeligate.onLoad(o, serializable, objects, strings, types);
          return super.onLoad(o, serializable, objects, strings, types);
      }
  }
  </code></pre>
  
  <p>Where AuditInterceptor extends native hibernate's EmptyInterceptor 
  and overload some methods like onSave(), onFlush(), onPreFlush()</p>
  
  <p>Some methods of the AuditAndDeletableCatcherInterceptor work, but onLoad() is never called.
  What am I doing wrong?</p>