HHH-16538 - Remove BeanValidationIntegrator#BV_CHECK_CLASS
(cherry picked from commit 8f94719152
)
This commit is contained in:
parent
ac8b2a02b1
commit
03003c3794
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue