Package | Description |
---|---|
org.hibernate.validator |
Bootstrap classes HibernateValidator and HibernateValidatorConfiguration which uniquely identify Hibernate Validator
and allow to configure it.
|
org.hibernate.validator.internal.engine |
Implementations for the core interfaces of JSR-380.
|
Modifier and Type | Method and Description |
---|---|
HibernateValidatorConfiguration |
HibernateValidatorConfiguration.addMapping(ConstraintMapping mapping)
Adds the specified
ConstraintMapping instance to the configuration. |
HibernateValidatorConfiguration |
HibernateValidatorConfiguration.allowMultipleCascadedValidationOnReturnValues(boolean allow)
Define whether more than one constraint on a return value may be marked for cascading validation are allowed.
|
HibernateValidatorConfiguration |
HibernateValidatorConfiguration.allowOverridingMethodAlterParameterConstraint(boolean allow)
Define whether overriding methods that override constraints should throw a
ConstraintDefinitionException . |
HibernateValidatorConfiguration |
HibernateValidatorConfiguration.allowParallelMethodsDefineParameterConstraints(boolean allow)
Define whether parallel methods that define constraints should throw a
ConstraintDefinitionException . |
HibernateValidatorConfiguration |
HibernateValidatorConfiguration.constraintValidatorPayload(Object constraintValidatorPayload)
Allows to set a payload which will be passed to the constraint validators.
|
HibernateValidatorConfiguration |
HibernateValidator.createSpecializedConfiguration(BootstrapState state) |
HibernateValidatorConfiguration |
HibernateValidatorConfiguration.enableTraversableResolverResultCache(boolean enabled)
Define whether the per validation call caching of
TraversableResolver results is enabled. |
HibernateValidatorConfiguration |
HibernateValidatorConfiguration.externalClassLoader(ClassLoader externalClassLoader)
Sets the class loader to be used for loading user-provided resources:
XML descriptors (
META-INF/validation.xml as well as XML constraint mappings)
classes specified by name in XML descriptors (e.g. |
HibernateValidatorConfiguration |
HibernateValidatorConfiguration.failFast(boolean failFast)
En- or disables the fail fast mode.
|
HibernateValidatorConfiguration |
HibernateValidatorConfiguration.scriptEvaluatorFactory(ScriptEvaluatorFactory scriptEvaluatorFactory)
Allows to specify a custom
ScriptEvaluatorFactory responsible for creating ScriptEvaluator s
used to evaluate script expressions for ScriptAssert and ParameterScriptAssert constraints. |
HibernateValidatorConfiguration |
HibernateValidatorConfiguration.temporalValidationTolerance(Duration temporalValidationTolerance)
Allows to set the acceptable margin of error when comparing date/time in temporal constraints such as
Past /PastOrPresent and Future /FutureOrPresent . |
Modifier and Type | Class and Description |
---|---|
class |
ConfigurationImpl
Hibernate specific
Configuration implementation. |
Copyright © 2019 JBoss by Red Hat. All rights reserved.