Bean validation size of a List? : <p>How can I set a bean validation constraint that a <code>List</code> should at minimum contain 1 and at maximum contain 10 elements?</p>

<p>None of the following works:</p>

<pre><code>@Min(1)
@Max(10)
@Size(min=1, max=10)
private List&lt;String&gt; list;
</code></pre>
