Package org.hibernate.envers
Interface RevisionListener
-
- All Known Subinterfaces:
EntityTrackingRevisionListener
public interface RevisionListenerAn implementation of this class, having a no-arg constructor, should be passed as an argument to theRevisionEntityannotation.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidnewRevision(Object revisionEntity)Called when a new revision is created.
-
-
-
Method Detail
-
newRevision
void newRevision(Object revisionEntity)
Called when a new revision is created.- Parameters:
revisionEntity- An instance of the entity annotated withRevisionEntity, which will be persisted after this method returns. All properties on this entity that are to be persisted should be set by this method.
-
-