title: Check if bigdecimal has only 2 digits after precision using @javax.validation.constraints.Digits
body: <p>I have a following class.</p>
  
  <pre><code>Class Item {
  
     private BigDecimal amount;
  
     ....
  }
  </code></pre>
  
  <p>How I can validate <em>amount</em> that It should contain only two digits after precision.
  i.e </p>
  
  <blockquote>
    <p>2.19 is correct</p>
  </blockquote>
  
  <p>and </p>
  
  <blockquote>
    <p>2.292 is incorrect</p>
  </blockquote>
  
  <p>using annotation <code>@javax.validation.constraints.Digits</code>
  And how to show custom error message for this ?</p>
  
  <p>Thank you :)</p>