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