title: Jersey/JAX-RS : How to cascade beans-validation recursively with @Valid automatically?
body: <p>I am validating my POJOs in a REST resource endpoint in Jersey:</p>
  
  <pre><code>public class Resource {
      @POST
      public Response post(@NotNull @Valid final POJO pojo) {
          ...
      }
  }
  
  public class POJO {
      @NotNull
      protected final String name;
  
      @NotNull
      @Valid
      protected final POJOInner inner;
  
      ...
  }
  
  public class POJOInner {
      @Min(0)
      protected final int limit;
  
      ...
  }
  </code></pre>
  
  <p>This seems to work fine.</p>
  
  <p>However, the <code>@Min(0)</code> annotation is only verified if the field <code>inner</code> has the <code>@Valid</code> annotation. It doesn't feel right to add the <code>@Valid</code> annotation to each field which isn't a primitive.</p>
  
  <p>Is there a way to tell the bean validator to automatically recursively continue the validation, even when no <code>@Valid</code> annotation is present? I would like my <code>POJO</code> to be as following:</p>
  
  <pre><code>public class POJO {
      @NotNull
      protected final String name;
  
      @NotNull
      protected final POJOInner inner;
  
      ...
  }
  </code></pre>