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,
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