title: How to register hibernate interceptor in Spring
body: <p>I need to register class which is derived from EmptyInterceptor in Spring. Do someone know how to register this interceptor to Hibernate session? Definition of my SesionFactory is bellow.</p>
  
  <pre><code>&lt;bean id="sessionFactory"
            class="org.springframework.orm.hibernate4.LocalSessionFactoryBean"&gt;
          &lt;property name="dataSource" ref="dataSource"/&gt;
          &lt;property name="packagesToScan"&gt;
              &lt;list&gt;
                  &lt;value&gt;com.foo&lt;/value&gt;
              &lt;/list&gt;
          &lt;/property&gt;
      &lt;property name="hibernateProperties" ref="hibernateProperties"/&gt;
  &lt;/bean&gt;
  </code></pre>