Record Class CollectionAuditSupport.OwnerAuditChange
java.lang.Object
java.lang.Record
org.hibernate.persister.collection.mutation.CollectionAuditSupport.OwnerAuditChange
- Enclosing class:
CollectionAuditSupport
public static record CollectionAuditSupport.OwnerAuditChange(EntityKey entityKey, Object entity, Object[] values, EntityAuditSupport ownerMutationSupport)
extends Record
Owning entity audit change implied by a collection mutation.
Collection row audit changes are accompanied by a logical owner MOD
audit change when the owner is itself audited and can be resolved from the
session.
- Since:
- 8.0
-
Constructor Summary
ConstructorsConstructorDescriptionOwnerAuditChange(EntityKey entityKey, Object entity, Object[] values, EntityAuditSupport ownerMutationSupport) Creates an instance of aOwnerAuditChangerecord class. -
Method Summary
Modifier and TypeMethodDescriptionentity()Returns the value of theentityrecord component.Returns the value of theentityKeyrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theownerMutationSupportrecord component.final StringtoString()Returns a string representation of this record class.Object[]values()Returns the value of thevaluesrecord component.
-
Constructor Details
-
OwnerAuditChange
public OwnerAuditChange(EntityKey entityKey, Object entity, Object[] values, EntityAuditSupport ownerMutationSupport) Creates an instance of aOwnerAuditChangerecord class.- Parameters:
entityKey- the value for theentityKeyrecord componententity- the value for theentityrecord componentvalues- the value for thevaluesrecord componentownerMutationSupport- the value for theownerMutationSupportrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
entityKey
Returns the value of theentityKeyrecord component.- Returns:
- the value of the
entityKeyrecord component
-
entity
Returns the value of theentityrecord component.- Returns:
- the value of the
entityrecord component
-
values
Returns the value of thevaluesrecord component.- Returns:
- the value of the
valuesrecord component
-
ownerMutationSupport
Returns the value of theownerMutationSupportrecord component.- Returns:
- the value of the
ownerMutationSupportrecord component
-