-
1. Re: Create my Custom RevisionListener for persist user and others data on REVINFO table.
adamw Jan 14, 2013 2:40 PM (in response to raneves)Yeah this should work. Is MyRevisionEntity added to and visible to Hibernate? It should be treated as a normal Hibernate entity.
Adam
-
2. Re: Create my Custom RevisionListener for persist user and others data on REVINFO table.
raneves Jan 15, 2013 6:22 AM (in response to adamw)Hi Adam, how are u? fine?
my problem should be the version of hibernate core 3.3 that is not compatible with envers 4.1
so I tried to use envers <version>1.2.1.GA-hibernate-3.3</version> in AS7
but I had the following error:
org.hibernate.event.service.spi.EventListenerRegistrationException: Listener did not implement expected interface [org.hibernate.event.spi.PostCollectionRecreateEventListener]
I'm using Jboss Server 7.1
Hibernate core 3.3.1.GA
Envers 1.2.1.GA
-
3. Re: Create my Custom RevisionListener for persist user and others data on REVINFO table.
adamw Jan 17, 2013 12:54 PM (in response to raneves)1 of 1 people found this helpfulIf you are using JB AS 7.1, then you should probably use HIbernate 4 and the corresponding Envers version. The Envers version must always match the Hibernate version.
Adam
-
4. Re: Create my Custom RevisionListener for persist user and others data on REVINFO table.
raneves Jan 18, 2013 3:02 PM (in response to raneves)Hi guys,
my project are a module maven project with various modules, so my persistence and entities are different modules.
so I setting this property: org.hibernate.envers.revision_listener, then my Listener work very well.
thanks for you help, Adam
documentation envers 4.0 define: