title: how to validate all groups on hibernate validator?
body: <p>I have this model which i want to validate:</p>
  
  <pre><code>public class ClientDomain {
  
      public interface AddValidations {
      }
  
      public interface UpdateValidations {
      }
  
      private String id;
  
      @NotNull(groups = {ClientDomain.AddValidations.class})
      @Size(min = 2, max = 10, groups = {ClientDomain.AddValidations.class})
      private String name;
  
      @NotNull(groups = {ClientDomain.UpdateValidations.class})
      private ClientType type;
  
      @NotNull(groups = {ClientDomain.AddValidations.class})
      private Gender gender;
  
  .....
  }
  </code></pre>
  
  <p>Then, i am validating it like this:</p>
  
  <pre><code>Set&lt;ConstraintViolation&lt;Object&gt;&gt; violations = this.validator.validate(clientDomain);
  </code></pre>
  
  <p>This is not working, as far i know that is because all constraints validations belong to certains groups, then when i don't pass a group to validate, the validator takes by default the javax.validation.group.Default, then it validates nothing, i am right? if so, then is there any way to validate all constraints validations regardless the group they belong to? Regards!</p>
  
  <p>PD: Obviusly, i do not want to do this:</p>
  
  <pre><code>Set&lt;ConstraintViolation&lt;Object&gt;&gt; violations = this.validator.validate(clientDomain, ClientDomain.AddValidations, ClientDomain.UpdateValidations);
  </code></pre>