title: How to declare CHECK constraint with Spring JPA?
body: <p>How is it possible to know, which data annotations are supported by <code>Spring JPA</code>?</p>
  
  <p>For example, is <a href="http://docs.oracle.com/javaee/6/api/javax/validation/constraints/Min.html" rel="noreferrer"><code>@Min</code></a> supported?</p>
  
  <pre><code>   @Min(value = 0)
     private double calories;
  </code></pre>
  
  <p>Anyway, how can one declare <code>CHECK</code> constraint? </p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>Please read about <a href="https://en.wikipedia.org/wiki/Check_constraint" rel="noreferrer">CHECK constraint</a>. Also note, that <a href="http://docs.oracle.com/javaee/6/api/javax/validation/constraints/Min.html" rel="noreferrer"><code>@Min</code></a> is a hyperlink. </p>