What purpose of @Valid
annotation when putting it on method parameter level?
public void (@Valid Person p) { ... }
I created a te
Its purpose is to validate the object against the defined constraints.
From Hibernate Docs
Performs validation recursively on the associated object. If the object is a collection or an array, the elements are validated recursively. If the object is a map, the value elements are validated recursively.
This might help http://www.mkyong.com/spring-mvc/spring-3-mvc-and-jsr303-valid-example/