In Hibernate why is my custom Hibernate interceptor not being fired?

Solution Verified - Updated -

Issue

  • As showed in Hibernate documentation, I created my Interceptor extending the class "org.hibernate.EmptyInterceptor" and I override only the callback methods I needed, i.e., the "onSave" method. After that, I register my Interceptor in the "hibernate.cfg.xml" but it is never executed

    <property name="hibernate.ejb.interceptor">br.com.synchro.sped.hibernate.interceptor.AtribuiDataHoraInterceptor</property>
    

Environment

  • JBoss Application Server (AS) 4.0.5

  • JBoss Hibernate 3.2.5

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content