title: Validating size for BigDecimal for given length, not precision
body: <p>I have a requirement to <strong>validate length for a BigDecimal object</strong> using JSR validators. It should contain at max of 10 characters.</p>
  
  <pre><code>Some valid examples:
  123456789.0
  12345.67890
  12345.67
  1.2345
  
  Invalid examples:
  123456789.0123
  123.32131232
  </code></pre>
  
  <p>How can I achieve this using annotation ? Following @Size annotation is for String objects as per JSR documentation.</p>
  
  <pre><code>@Size(max = 10)
  @Column(name = "totalPrice")
  private BigDecimal totalPrice;
  </code></pre>