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:
Emmanuel Bernard 2010-04-21 13:26:17 +00:00
parent 6cb0bd96ad
commit ccadc9a406
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ public class BeanValidationActivator {
properties.setProperty( Environment.CHECK_NULLABILITY, "false" );
}
if ( modes.contains( ValidationMode.NONE ) ) return;
if ( ! ( modes.contains( ValidationMode.CALLBACK ) || modes.contains( ValidationMode.AUTO ) ) ) return;
try {
Class<?> activator = ReflectHelper.classForName( TYPE_SAFE_ACTIVATOR_CLASS, BeanValidationActivator.class );