Interface HibernateConstraintValidatorInitializationContext

    • Method Detail

      • getClockProvider

        ClockProvider getClockProvider()
        Returns the provider for obtaining the current time in the form of a Clock, e.g. when validating the Future and Past constraints.
        Returns:
        the provider for obtaining the current time, never null. If no specific provider has been configured during bootstrap, a default implementation using the current system time and the current default time zone as returned by Clock.systemDefaultZone() will be returned.
      • getTemporalValidationTolerance

        @Incubating
        Duration getTemporalValidationTolerance()
        Returns the temporal validation tolerance i.e. the acceptable margin of error when comparing date/time in temporal constraints.
        Returns:
        the tolerance
        Since:
        6.0.5