Make the ValidatorFactory available via EntityManagerFactory.getProperties()

Description

Right now, passing in a ValidatorFactory via org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.withValidatorFactorry doesn't work, i.e., the ValidatorFactory that's passed in doesn't actually get used. Making the ValidatorFactory available via EntityManagerFactory.getProperties().get("javax.persistence.validation.factory") fixes this problem, i.e., the ValidatorFactory that's passed in to withValidatorFactory will actually get used.

Environment

None

Status

Assignee

Brett Meyer

Reporter

Farah Juma

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Priority

Major
Configure