Hi,
Validator 3.x amd 4.x are completely different code bases. The latter is the reference implementation of the Bean Validation specification (JSR 303). I recommend you have a look at the specification or the Validator online manual -
http://docs.jboss.org/hibernate/stable/ ... ml_single/ - to see how Bean Validation works.
I am not sure how much it makes sense to just compare classes, but here we go:
org.hibernate.validator.ValidatorClass --> javax.validation.Constraint
org.hibernate.validator.InvalidValue --> javax.validation.ConstraintViolation
org.hibernate.validator.InvalidStateException -> javax.validation.ConstraintViolationException
org.hibernate.validator.ClassValidator --> javax.validation.Validator
I don't think thought that just switching classes will help. You'll need to spend some time with the documentation.
--Hardy