Class TemporalCollectionKey

java.lang.Object
org.hibernate.engine.spi.CollectionKey
org.hibernate.engine.spi.TemporalCollectionKey
All Implemented Interfaces:
Serializable

public final class TemporalCollectionKey extends CollectionKey
A CollectionKey for a temporal (historical) snapshot of a collection, loaded from an audit table at a specific changeset identifier.

The changeset identifier is included in equals()/hashCode() so that the persistence context naturally isolates collections at different points in time.

Since:
7.4
See Also:
  • Constructor Details

    • TemporalCollectionKey

      public TemporalCollectionKey(CollectionPersister persister, Object key, Object changesetId)
      Construct a unique identifier for a temporal snapshot of a collection.
      Parameters:
      persister - The collection persister
      key - The collection key (owner FK)
      changesetId - The changeset identifier (must not be null)
  • Method Details