Class BeanValidationIntegrator

java.lang.Object
org.hibernate.boot.beanvalidation.BeanValidationIntegrator
All Implemented Interfaces:
Integrator

public class BeanValidationIntegrator extends Object implements Integrator
In Integrator for Bean Validation.
  • Field Details

  • 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

      public static void validateFactory(Object object)
      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: Integrator
      Perform integration.
      Specified by:
      integrate in interface Integrator
      Parameters:
      metadata - The fully initialized boot-time mapping model
      context - The integration-time context
      sessionFactory - The SessionFactory being created