title: JPA @Size annotation for BigDecimal
body: <p>How do I use the <code>@Size</code> annotation for MySQL <code>DECIMAL(x,y)</code> columns?</p>
  
  <p>I'm using <code>BigDecimal</code>, but when I try to include the <code>@Size</code> <code>max</code> it doesn't work. Here is my code:</p>
  
  <pre><code>@Size(max = 7,2)
  @Column(name = "weight")
  private BigDecimal weight;
  </code></pre>