title: No validator could be found for constraint 'javax.validation.constraints.Size'
body: <p>I have the following error</p>
  
  <blockquote>
    <p>javax.validation.UnexpectedTypeException: HV000030: No validator could
    be found for constraint 'javax.validation.constraints.Size' validating
    type 'java.lang.Integer'. Check configuration for 'discounted'</p>
  </blockquote>
  
  <p>My code is:</p>
  
  <pre><code>@Column(name= "discount_percentage")
  @Size(min=0, max=90)
  @Min(0)
  @Max(90)
  private Integer discountPercentage = 0;
  </code></pre>
  
  <p>I set it to 0 because i was getting a NullPointerException when loading my view.
  And is Integer because i was reading in others question, and some people says that sometimes there are problems when using @Size with primitive types. </p>
  
  <p>What should i do? Thanks in advance.</p>