-
1. Re: RevisionListener not being called
hernanbolido Apr 20, 2010 9:21 PM (in response to zander35)1 of 1 people found this helpfulHi Alex!
Did you added the envers events in your configuration?
Regards. Hernán.
-
2. Re: RevisionListener not being called
zander35 Apr 21, 2010 8:54 AM (in response to hernanbolido)Thanks for the response. I do have the listeners that I originally needed to setup envers with, but I didn't add anything specific to the revisionListener. Are you saying that I need to add that as well? Do you know what the entry key for that would be in my xml file?
Attached is what my hibernate properties look like as setup through a spring application context xml. I pulled out all the lines for my hbm.xml files to make it more legible.
Thanks
Alex
-
3. Re: RevisionListener not being called
zander35 Apr 21, 2010 1:08 PM (in response to zander35)I figured out my problem. I did not realize that I needed to add a new mapping file (hbm.xml) for the new RevisionEntity which I created. Once I added the new hbm.xml for my revision entity (with the new column I added to the REVINFO table for the user), envers picked it up on startup.
Thanks
Alex