title: Hibernate Validator validate set
body: <p>I have custom validation annotation called <code>@Role</code> and I have custom validator which validates <code>User</code> and it works. Problem is when I want to use this validator on <code>Set&lt;User&gt;</code> to validate every element on this set like this</p>
  
  <pre><code>public class Project {
    // Validates
    @Role
    private User creator;
  
    // Throws error
    @Role
    private Set&lt;User&gt; users;
  }
  </code></pre>
  
  <p>This sadly throws this error:</p>
  
  <pre><code> javax.validation.UnexpectedTypeException: HV000030: No validator could be found for constraint 'cz.studenthub.validators.annotations.Role' validating type 'java.util.Set&lt;cz.studenthub.core.User&gt;'
  </code></pre>
  
  <p>Is there any way to validate collections without having to write new validator for <code>Set&lt;User&gt;</code>?</p>
  
  <p>Note: I don't want to use  <code>@Valid</code> for <code>User</code> because that instance doesn't need to be completely valid, it just needs to meet that one condition validated by my <code>RoleValidator</code>.</p>