org.hibernate.envers.test.integration.reventity
Class CountingRevisionListener
java.lang.Object
org.hibernate.envers.test.integration.reventity.CountingRevisionListener
- All Implemented Interfaces:
- RevisionListener
public class CountingRevisionListener
- extends Object
- implements RevisionListener
Method Summary |
void |
newRevision(Object revisionEntity)
Called when a new revision is created. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
revisionCount
public static int revisionCount
CountingRevisionListener
public CountingRevisionListener()
newRevision
public void newRevision(Object revisionEntity)
- Description copied from interface:
RevisionListener
- Called when a new revision is created.
- Specified by:
newRevision
in interface RevisionListener
- Parameters:
revisionEntity
- An instance of the entity annotated with RevisionEntity
, which will be persisted
after this method returns. All properties on this entity that are to be persisted should be set by this method.
Copyright © 2001-2012 Red Hat, Inc. All Rights Reserved.