There is also the option to pass the ValidatorFactory as property to the entity manager creation using the property javax.persistence.validation.factory. If there is a ValidatorFactory instance stored under this property, the entity manager uses this validator factory instead of creating a new one.