Interface AuditStrategy

All Superinterfaces:
AuditStrategy
All Known Implementing Classes:
DefaultAuditStrategy, org.hibernate.envers.strategy.internal.DefaultAuditStrategy, org.hibernate.envers.strategy.internal.ValidityAuditStrategy, ValidityAuditStrategy

@Deprecated(since="5.4") public interface AuditStrategy extends AuditStrategy
Deprecated.
use AuditStrategy instead.
Behaviours of different audit strategy for populating audit data.
  • Method Details

    • perform

      @Deprecated(since="5.2.1") default void perform(org.hibernate.Session session, String entityName, org.hibernate.envers.boot.internal.EnversService enversService, Object id, Object data, Object revision)
      Perform the persistence of audited data for regular entities.
      Parameters:
      session - Session, which can be used to persist the data.
      entityName - Name of the entity, in which the audited change happens
      enversService - The EnversService
      id - Id of the entity.
      data - Audit data to persist
      revision - Current revision data
    • performCollectionChange

      @Deprecated(since="5.2.1") default void performCollectionChange(org.hibernate.Session session, String entityName, String propertyName, org.hibernate.envers.boot.internal.EnversService enversService, org.hibernate.envers.internal.entities.mapper.PersistentCollectionChangeData persistentCollectionChangeData, Object revision)
      Perform the persistence of audited data for collection ("middle") entities.
      Parameters:
      session - Session, which can be used to persist the data.
      entityName - Name of the entity, in which the audited change happens.
      propertyName - The name of the property holding the persistent collection
      enversService - The EnversService
      persistentCollectionChangeData - Collection change data to be persisted.
      revision - Current revision data