Hi All
I'm back looking at envers. I added the following using Spring:
<entry key="post-update" value-ref="entityVersioning"/>
<entry key="post-update" value-ref="entityVersioning"/>
<entry key="post-delete" value-ref="entityVersioning"/>
<entry key="pre-collection-update" value-ref="entityVersioning"/>
<entry key="pre-collection-remove" value-ref="entityVersioning"/>
<entry key="pre-collection-recreate" value-ref="entityVersioning"/>
Adding the pre-collection-recreate gives me the following exception:
Caused by: java.lang.ArrayStoreException: org.hibernate.envers.event.AuditEventListener
at org.hibernate.cfg.Configuration.setListener(Configuration.java:1776)
Hi All
Please ignore the post. I realised what I was doing wrong. I was using a pre-collection-recreate when I should've been using post. Sorry about that!
Cheers