title: Error javax.validation.ConstraintViolationException
body: <p>I am using Spring MVC and Spring Security and hibernate. i am having problem with save 'Password" can not tell  where mistake is</p>
  
  <p>I get the Following Error When i submit my form</p>
  
  <pre><code>nested exception is javax.validation.ConstraintViolationException: Validation failed for classes [com.greensungh.jupiter_SHM.model.UsersInfo] during persist time for groups [javax.validation.groups.Default, ]
  List of constraint violations:[
      ConstraintViolationImpl{interpolatedMessage='size must be between 6 and 25', propertyPath=Password, rootBeanClass=class com.greensungh.jupiter_SHM.model.UsersInfo, messageTemplate='{javax.validation.constraints.Size.message}'}
  ]] with root cause
  javax.validation.ConstraintViolationException: Validation failed for classes [com.greensungh.jupiter_SHM.model.UsersInfo] during persist time for groups [javax.validation.groups.Default, ]
  List of constraint violations:[
      ConstraintViolationImpl{interpolatedMessage='size must be between 6 and 25', propertyPath=Password, rootBeanClass=class com.greensungh.jupiter_SHM.model.UsersInfo, messageTemplate='{javax.validation.constraints.Size.message}'}
  </code></pre>
  
  <p>this is my view:</p>
  
  <pre><code>&lt;div class="control-group"&gt;
  &lt;label class="control-label" for="password"&gt;Password&lt;/label&gt;
  &lt;div class="controls"&gt;
  &lt;form:password path="Password" id="password"
  class="form-control span8" /&gt;
  &lt;div class="has-error"&gt;
  &lt;form:errors path="Password" class="help-inline" /&gt;
  &lt;/div&gt;&lt;/div&gt;&lt;/div&gt;  
  </code></pre>
  
  <p>The Model:</p>
  
  <pre><code>@NotEmpty
      @Size(min=6, max=25)
      @Column(name="PASSWORD", nullable=false)
      private String Password;
  </code></pre>
  
  <p>my messages.properties </p>
  
  <pre><code>NotEmpty.userInfo.Password=Password must be blank
  Size.userInfo.Password=Password must be between {6} to {25} characters long
  </code></pre>
  
  <p>any ideas</p>