HHH-4968 do not activate Bean Validation listeners when only DDL is requested.
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@19266 1b8cb986-b30d-0410-93ca-fae66ebed9b2
This commit is contained in:
parent
6cb0bd96ad
commit
ccadc9a406
|
@ -50,7 +50,7 @@ public class BeanValidationActivator {
|
||||||
properties.setProperty( Environment.CHECK_NULLABILITY, "false" );
|
properties.setProperty( Environment.CHECK_NULLABILITY, "false" );
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( modes.contains( ValidationMode.NONE ) ) return;
|
if ( ! ( modes.contains( ValidationMode.CALLBACK ) || modes.contains( ValidationMode.AUTO ) ) ) return;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
Class<?> activator = ReflectHelper.classForName( TYPE_SAFE_ACTIVATOR_CLASS, BeanValidationActivator.class );
|
Class<?> activator = ReflectHelper.classForName( TYPE_SAFE_ACTIVATOR_CLASS, BeanValidationActivator.class );
|
||||||
|
|
Loading…
Reference in New Issue