Skip to content

Commit 227317f

Browse files
committed
HHH-19210 Add a migration note about change of the behavior of ValidationMode.AUTO
1 parent 0281725 commit 227317f

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

migration-guide.adoc

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -486,6 +486,17 @@ Also, a key subgraph now always refers to a `Map` key, and never to an entity id
486486

487487
We encourage migration to the use of the new JPA-standard operations.
488488

489+
[[validator-integration-validation-mode]]
490+
== Behaviour change for `ValidationMode.AUTO`
491+
492+
Hibernate ORM will not silently ignore issues with the `ValidatorFactory` configuration anymore when an auto validation mode is chosen.
493+
In the past, with `ValidationMode.AUTO` enabled, Hibernate ORM would translate the validation mode to `ValidationMode.NONE`,
494+
either when there were no providers available or when a provider was available,
495+
but creating an instance of the validator factory resulted in an exception.
496+
From now on, `ValidationMode.AUTO` will only be translated to `ValidationMode.NONE` when there are no validation providers available,
497+
and in the case when the validation provider is available and an exception is encountered while creating an instance of the `ValidatorFactory`
498+
this exception will be propagated to the user.
499+
489500
== Deprecations
490501

491502
* `@Comment` is deprecated in favor of the JPA 3.2 `comment` members
@@ -565,4 +576,4 @@ We encourage migration to the use of the new JPA-standard operations.
565576
== Todos (dev)
566577

567578
* Look for `todo (jpa 3.2)` comments
568-
* Look for `todo (7.0)` comments
579+
* Look for `todo (7.0)` comments

0 commit comments

Comments
 (0)