title: JSR 303: How to Validate a Collection of annotated objects?
body: <p>Is it possible to validate a collection of objects in JSR 303 - Jave Bean Validation where the collection itself does not have any annotations but the elements contained within do?</p>
  
  <p>For example, is it possible for this to result in a constraint violation due to a null name on the second person:</p>
  
  <pre><code>List&lt;Person&gt; people = new ArrayList&lt;Person&gt;();
  people.add(new Person("dave"));
  people.add(new Person(null));
  
  Validator validator = Validation.buildDefaultValidatorFactory().getValidator();
  Set&lt;ConstraintViolation&lt;List&lt;Person&gt;&gt;&gt; validation = validator.validate(people);
  </code></pre>