HHH-16538 - Remove BeanValidationIntegrator#BV_CHECK_CLASS

(cherry picked from commit 8f94719152)
This commit is contained in:
Steve Ebersole 2023-05-16 12:36:32 -05:00
parent ac8b2a02b1
commit 03003c3794
1 changed files with 1 additions and 7 deletions

View File

@ -36,7 +36,6 @@ public class BeanValidationIntegrator implements Integrator {
public static final String APPLY_CONSTRAINTS = "hibernate.validator.apply_to_ddl";
public static final String BV_CHECK_CLASS = "jakarta.validation.ConstraintViolation";
public static final String JAKARTA_BV_CHECK_CLASS = "jakarta.validation.ConstraintViolation";
public static final String MODE_PROPERTY = "javax.persistence.validation.mode";
@ -165,13 +164,8 @@ public class BeanValidationIntegrator implements Integrator {
classLoaderService.classForName( JAKARTA_BV_CHECK_CLASS );
}
catch (Exception e) {
try {
classLoaderService.classForName( BV_CHECK_CLASS );
}
catch (Exception e2) {
return false;
}
}
return true;
}