I\'m trying to integrate Envers in my project. I\'m using Hibernate-envers 3.5.5-Final, Hibernate-core 3.5.5-Final, spring 3.0.7.RELEASE.
For DAO Layer, I\'m using a Gen
OK.
I solved the problem.
Firstibale, it seems that with the Hibernate-core 3.5.5-Final, we don't need org.hibernate.ejb.event.EJB3PostInsertEventListener, so in our ApplicationContext-config.xml we should have just this config :
Secondly, in our case our project uses two transction managers, so for the services annotated @Transactionnal we have to mention the name of the proper transaction manager used, that means that all services should be annotated as @Transactionnal(value="NAME_TX_MANAGER"). The source of this problem is that Envers doesn't work properly if we have an auto-commit (If I understood well its documentation).
I hope that may be helpful for the other visitors if the face the same difficulties.