Class EntityChangeNotifier


  • public class EntityChangeNotifier
    extends Object
    Notifies RevisionInfoGenerator about changes made in the current revision.
    Author:
    Lukasz Antoniak (lukasz dot antoniak at gmail dot com)
    • Constructor Detail

      • EntityChangeNotifier

        public EntityChangeNotifier​(RevisionInfoGenerator revisionInfoGenerator,
                                    org.hibernate.engine.spi.SessionImplementor sessionImplementor)
    • Method Detail

      • entityChanged

        public void entityChanged​(org.hibernate.Session session,
                                  Object currentRevisionData,
                                  AuditWorkUnit vwu)
        Notifies RevisionInfoGenerator about changes made in the current revision. Provides information about modified entity class, entity name and its id, as well as RevisionType and revision log entity.
        Parameters:
        session - Active session.
        currentRevisionData - Revision log entity.
        vwu - Performed work unit.