Revert ValidationMode.CALLBACK on JPA bootstrap

In gh-30549 we applied changes to the `DefaultPersistenceUnitManager` to
use the `ValidationMode.CALLBACK` to better detect invalid validation
setup and enforce bootstrap failures in those cases.

Unfortunately, doing so disables the detection of validation annotation
on entities during the schema creation phase. This is a known Hibernate
issue. This commit reverts this change until HHH-12287 is fixed.

Fixes gh-31726
This commit is contained in:
Brian Clozel
2023-12-06 18:34:42 +01:00
parent 7a221eb581
commit 61dd9fce73
2 changed files with 2 additions and 31 deletions

View File

@@ -10,7 +10,6 @@ dependencies {
optional(project(":spring-context"))
optional(project(":spring-web"))
optional("jakarta.servlet:jakarta.servlet-api")
optional("jakarta.validation:jakarta.validation-api")
optional("org.eclipse.persistence:org.eclipse.persistence.jpa")
optional("org.hibernate:hibernate-core-jakarta")
testImplementation(project(":spring-core-test"))