title: Hibernate Criteria API condition "like" with integer
body: <p>In my database I have a column "year" which is an integer.</p>
  
  <p>How can I search by using Criteria API (not by HQL) which records contain, for example "196..." in the year column?</p>
  
  <p>I think it should be <code>Restrictions.like</code>, but I got exception:</p>
  
  <blockquote>
    <p>SEVERE: java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Integer</p>
  </blockquote>