Class PersistentCollectionChangeWorkUnit.PersistentCollectionChangeWorkUnitId

java.lang.Object
org.hibernate.envers.internal.synchronization.work.PersistentCollectionChangeWorkUnit.PersistentCollectionChangeWorkUnitId
All Implemented Interfaces:
Serializable
Enclosing class:
PersistentCollectionChangeWorkUnit

public static class PersistentCollectionChangeWorkUnit.PersistentCollectionChangeWorkUnitId extends Object implements Serializable
A unique identifier for a collection work unit. Consists of an id of the owning entity and the name of the entity plus the name of the field (the role). This is needed because such collections aren't entities in the "normal" mapping, but they are entities for Envers.
See Also:
  • Constructor Details

    • PersistentCollectionChangeWorkUnitId

      public PersistentCollectionChangeWorkUnitId(Object ownerId, String role)
  • Method Details

    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • getOwnerId

      public Object getOwnerId()