title: Cross field validation with Hibernate Validator (JSR 303)
body: <p>Is there an implementation of (or third-party implementation for) cross field validation in Hibernate Validator 4.x? If not, what is the cleanest way to implement a cross field validator?</p>
  
  <p>As an example, how can you use the API to validate two bean properties are equal (such as validating a password field matches the password verify field).</p>
  
  <p>In annotations, I'd expect something like:</p>
  
  <pre class="lang-java prettyprint-override"><code>public class MyBean {
    @Size(min=6, max=50)
    private String pass;
  
    @Equals(property="pass")
    private String passVerify;
  }
  </code></pre>