Hibernate Envers Release Notes (changelog)

I want to add to my project a list of changes in revision (click on the info icon), for example:

Revision X
- added fieldA entry
- modified fieladB from B to BB
- removed fieldC entry
...

      

What's the best way?

ps: I am already using EntityTrackingRevisionListener.

Thank.

+2


source to share


1 answer


The best way currently is to download the object history (list of historical versions) and compare in Java.

The latest version (4.1) also has support for adding changed flags (boolean, indicate if the field was changed or not in this revision): http://docs.jboss.org/hibernate/core/4.1/devguide/en-US/ html / ch15.html # envers-tracking-properties-changes



Perhaps this can be extended to an ADD / MOD / DEL enumeration, just like for objects.

0


source







All Articles