Hello Ivy-Developers! Envers is a powerfull Library, that comes along with the Hibernate-Package and allows auto-Auditing for entities. (History-Tables etc.) Update: To insert the library I did as following: Added hibernate-envers-4.2.13.Final.jar to ivy-Hibernate-jar: designer\plugins\ch.ivyteam.hibernate_5.1.0.201409121008.jar\lib\mvn\ made some changes in the ivy-Hibernate-jar: ',lib/mvn/hibernate-envers-4.2.13.Final.jar' added to MANIFEST.MF in pom.xml I inserted a new dependency for hibernate-envers (see pom.xml) When inserting this library this unusual way, there are no more errors accessing the persistence. Adding @Audited to the Entity gives no error, but no auditing happens on merge.(Wich would usualy be the case) Merging through the EntityManager (from createEntityManager()) does not work (Nothing happens, no error) Trying to access the AuditReader will fail on a ClassNotFoundException: org.hibernate.envers.AuditReaderFactory
As I understand this has been successfully implemented in the csc project. So the questions are: How can I integrate this library into Ivy? If not possible, is there a way to detach Hibernate more from Ivy? Installation as described in: Guide from Hibernate Thanks in advance! Greetings Alexis |
Hi all, with ivy 6.6 and later it will be much easier to use Hibernate Envers in an ivy Project (Thanks to Issue XIVY-1696). An ivy sample project using Hibernate Envers can be found here: |
Once you sign in you will be able to subscribe for any updates here
By RSS:Markdown Basics
Tags:
Asked: 27.01.2015 at 17:05
Seen: 4,523 times
Last updated: 15.02.2017 at 14:30