Record Class SessionCreationOption.EffectiveChangeset
java.lang.Object
java.lang.Record
org.hibernate.SessionCreationOption.EffectiveChangeset
- All Implemented Interfaces:
EntityAgent.CreationOption, EntityManager.CreationOption
- Enclosing interface:
SessionCreationOption
public static record SessionCreationOption.EffectiveChangeset(Object changesetId)
extends Record
implements EntityManager.CreationOption, EntityAgent.CreationOption
Specify the
changeset id
for reading temporal or
audited entity data. Instances of
temporal or audited entities retrieved in the created session represent the
state effective at the given changeset.
- Since:
- 8.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionEffectiveChangeset(Object changesetId) Creates an instance of aEffectiveChangesetrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thechangesetIdrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
EffectiveChangeset
Creates an instance of aEffectiveChangesetrecord class.- Parameters:
changesetId- the value for thechangesetIdrecord 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). -
changesetId
Returns the value of thechangesetIdrecord component.- Returns:
- the value of the
changesetIdrecord component
-