Class CollectionAuditSupport

java.lang.Object
org.hibernate.persister.collection.mutation.CollectionAuditSupport

@Incubating public class CollectionAuditSupport extends Object

Shared diffing, operation planning, and binding support for audited collection row mutations.

Like EntityAuditSupport, this type keeps audit operation construction queue-neutral. Legacy collection audit coordinators consume operation groups through the normal mutation executor, while the graph queue materializes execution-agnostic plans as FlushOperations during transaction completion. This type also owns collection-row diffing and owner-entity audit-change resolution because those are audit semantics shared by both queues.

The main invariants guarded here are:

  • Collection audit rows are derived from the collection's original snapshot and final in-memory state.
  • Row identity is delegated to AuditCollectionRowMutationHelper so keyed, indexed, identifier, element, and one-to-many join-column shapes bind consistently.
  • Validity-strategy transaction-end updates use the same row identity as audit inserts and restrict on REVEND is null.
  • Owner entity MOD audit changes are resolved here as logical audit changes, not by teaching collection coordinators about graph execution.
Since:
8.0