|
Hibernate example source code file (EntityTrackingRevisionListener.java)
The Hibernate EntityTrackingRevisionListener.java source codepackage org.hibernate.envers; import java.io.Serializable; /** * Extension of standard {@link RevisionListener} that notifies whenever an entity instance has been * added, modified or removed within current revision boundaries. * @see RevisionListener * @author Lukasz Antoniak (lukasz dot antoniak at gmail dot com) */ public interface EntityTrackingRevisionListener extends RevisionListener { /** * Called after audited entity data has been persisted. * @param entityClass Audited entity class. * @param entityName Name of the audited entity. May be useful when Java class is mapped multiple times, * potentially to different tables. * @param entityId Identifier of modified entity. * @param revisionType Modification type (addition, update or removal). * @param revisionEntity An instance of the entity annotated with {@link RevisionEntity}. */ void entityChanged(Class entityClass, String entityName, Serializable entityId, RevisionType revisionType, Object revisionEntity); } Other Hibernate examples (source code examples)Here is a short list of links related to this Hibernate EntityTrackingRevisionListener.java source code file: |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.