1 Reply Latest reply on Jan 16, 2010 4:52 AM by adamw

    Envers and hibernate sessionFactory

      I hava an Tomcat app that uses hibernate sessionFactory, configured througth AnnotationConfiguration in an hibernateUtil class.

       

      How can I configure Envers in this enviroment?

       

      Thanks in advance,

        • 1. Re: Envers and hibernate sessionFactory
          adamw

          Hello,

           

          you should add the listeners to your hibernate configuration file (hibernate.cfg.xml). Then, you can obtain an AuditReader having a Hibernate Session object using AuditReaderFactory.get(session).

           

          Does this work for you?

           

          Adam