JSR 303 (Hibernate Verifier 4) and Spring 2.5.x.

How do I configure my Spring 2.5.x application to use JSR 303 authentication (hibernate validator 4x)? I am using Maven and updated the version of hibernate validator to 4.x, but when my Spring HibernateDaoSupport saves a model with constraint annotations, even if the object fails the constraint, I will not throw an exception (using It uses Hibernate validator 3x). Do you need other configuration?
I used this excellent tutorial. Could it be used as a checklist?

How do I configure my Spring 2.5.x application to use JSR 303 authentication (hibernate validator 4x)? I am using Maven and updated the version of hibernate validator to 4.x, but when my Spring HibernateDaoSupport saves a model with constraint annotations, even if the object fails the constraint, I will not throw an exception (using It uses Hibernate validator 3x). Do you need other configuration?

I used this excellent tutorial. Could it be used as a checklist?

Leave a Comment

Your email address will not be published.