title: @Valid not throwing exception
body: <p>I'm trying to validate my JPA Entity with @Valid like this:</p>
  
  <pre><code>public static void persist(@Valid Object o)
  </code></pre>
  
  <p>It worked fine for a while but now it stopped working and I'm not sure why. I tried to do it manually inside the <code>persist</code> method, and it works as expected:</p>
  
  <pre><code>    ValidatorFactory factory = Validation.buildDefaultValidatorFactory();
      Validator validator = factory.getValidator();
  
      Set&lt;ConstraintViolation&lt;Object&gt;&gt; constraintViolations = validator.validate(o);
  
      if (!constraintViolations.isEmpty()) {
          throw new ConstraintViolationException(constraintViolations);
      }
  </code></pre>
  
  <p>What could be happening or how can I debug this?</p>