Package org.hibernate.audit
@Incubating
package org.hibernate.audit
API for querying the history of
audited entities.
Audited entities are transparently versioned: every insert, update,
and delete is recorded in a companion audit table. Point-in-time
reads are available via
atChangeset() sessions, while the AuditLog
interface provides programmatic access to revision history,
modification types, and cross-entity change queries.
This package also contains the base classes and contracts for defining custom changeset entities and changeset listeners.
- See Also:
-
ClassDescriptionAuditEntry<T>A tuple representing an entity at a specific changeset in the audit history.Indicates a problem related to audit functionality.A service for querying the audit log.Factory for obtaining
AuditLoginstances.Enumerates the possible strategies for querying audited entities and collections.Base@MappedSuperclassfor changeset entities, providing the standardREV(auto-generated integer primary key) andREVTSTMP(Unix epoch timestamp) columns.A callback invoked when a new changelog entity is created, allowing the application to populate custom fields such as the current user or a comment.A built-in changelog entity which maps to theREVINFOtable.A built-in changelog entity with entity change tracking.A callback invoked for each entity change within a transaction, in addition to theChangesetListener.newChangeset(Object)callback invoked once when the changelog entity is created.The type of modification recorded in the modification type column of the audit log.Extension ofChangelogMappingthat tracks which entity types were modified in each revision.