Validate Object Graphs with Java Bean Validation’s @Valid Annotation

The Java Bean Validation’s @Valid constraint annotation makes sure that when an object is validated, the validation recurses to all fields that are annotated with @Valid. This makes it really easy to perform the usually complex task of validating entire object graphs.

To make sense of this post you should know the basics of how to use Java Bean Validation.

Continue reading %Validate Object Graphs with Java Bean Validation’s @Valid Annotation%


Source: Sitepoint