Skip to content

Commit caa9bc9

Browse files
committed
HHH-19210 Add a migration note about change of the behavior of ValidationMode.AUTO
1 parent 39fadce commit caa9bc9

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
@@ -538,6 +538,17 @@ Also, a key subgraph now always refers to a `Map` key, and never to an entity id
538538

539539
We encourage migration to the use of the new JPA-standard operations.
540540

541+
[[validator-integration-validation-mode]]
542+
== Behaviour change for `ValidationMode.AUTO`
543+
544+
Hibernate ORM will not silently ignore issues with the `ValidatorFactory` configuration anymore when an auto validation mode is chosen.
545+
In the past, with `ValidationMode.AUTO` enabled, Hibernate ORM would translate the validation mode to `ValidationMode.NONE`,
546+
either when there were no providers available or when a provider was available,
547+
but creating an instance of the validator factory resulted in an exception.
548+
From now on, `ValidationMode.AUTO` will only be translated to `ValidationMode.NONE` when there are no validation providers available,
549+
and in the case when the validation provider is available and an exception is encountered while creating an instance of the `ValidatorFactory`
550+
this exception will be propagated to the user.
551+
541552
== Deprecations
542553

543554
* `@Comment` is deprecated in favor of the JPA 3.2 `comment` members
@@ -617,4 +628,4 @@ We encourage migration to the use of the new JPA-standard operations.
617628
== Todos (dev)
618629

619630
* Look for `todo (jpa 3.2)` comments
620-
* Look for `todo (7.0)` comments
631+
* Look for `todo (7.0)` comments

0 commit comments

Comments
 (0)