Class BeanValidationIntegrator
java.lang.Object
org.hibernate.boot.beanvalidation.BeanValidationIntegrator
- All Implemented Interfaces:
Integrator
In
Integrator for Bean Validation.-
Nested Class Summary
Nested classes/interfaces inherited from interface Integrator
Integrator.Context -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidapplyRelationalConstraints(Metadata metadata, ServiceRegistry serviceRegistry, Object validatorFactory) Apply validation-derived schema metadata without constructing a SessionFactory.voidintegrate(Metadata metadata, Integrator.Context context, SessionFactoryImplementor sessionFactory) Perform integration.static voidvalidateFactory(Object object) Used to validate the type of an explicitly passed ValidatorFactory instanceMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Integrator
disintegrate, disintegrate, integrate
-
Field Details
-
APPLY_CONSTRAINTS
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
JAKARTA_BV_CHECK_CLASS
- See Also:
-
MODE_PROPERTY
- See Also:
-
JAKARTA_MODE_PROPERTY
- See Also:
-
-
Constructor Details
-
BeanValidationIntegrator
public BeanValidationIntegrator()
-
-
Method Details
-
applyRelationalConstraints
@Internal public static void applyRelationalConstraints(Metadata metadata, ServiceRegistry serviceRegistry, Object validatorFactory) Apply validation-derived schema metadata without constructing a SessionFactory. The supplied validator factory, if any, remains owned by its caller. -
validateFactory
Used to validate the type of an explicitly passed ValidatorFactory instance- Parameters:
object- The supposed ValidatorFactory instance
-
integrate
public void integrate(Metadata metadata, Integrator.Context context, SessionFactoryImplementor sessionFactory) Description copied from interface:IntegratorPerform integration.- Specified by:
integratein interfaceIntegrator- Parameters:
metadata- The fully initialized boot-time mapping modelcontext- The integration-time contextsessionFactory- The SessionFactory being created
-
SchemaToolingSettings.APPLY_VALIDATION_CONSTRAINTSinstead