title: How to restrict a user to enter numerics in a Integer field with help of annotations?
body: <p>I need to restrain a user to enter numeric values in a jsp field.On failure it should give relevant message.This is my current declaration:  </p>
  
  <pre><code>@NotNull  
  @Column(value="userId")  
  private Long userId; 
  </code></pre>
  
  <p>I need to know what more annotations do i need to add, to get my desired result without changing data type of the field.</p>