You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sometimes a ValidatorFactory is required by thirdparty libraries such as JPA 2.0 with the "javax.persistence.validation.factory" property. It would be nice if it were possible to configure a single ValidatorFactory that can be passed to JPA 2.0 and LocalValidatorFactoryBean to help provide a more consistent validation configuration across an application's configuration.
This could simply be a bean similar to LocalValidatorFactoryBean but instead of providing a Validator it provided a ValidatorFactory.
Then modifying LocalValidatorFactoryBean or creating a new bean based on SpringValidatorAdapter that accepts a ValidatorFactory.