title: Postgre SQL LIKE for Integer
body: <p>I've some problem in my project, we use PostgreSQL and Hibernate as ORM.
  I want to perform search in my table for any column type (INTEGER, STRING, TEXT).
  Where are some problem with Hibernate, I know what I can execute for example LIKE operator
  on INTEGER type like this:</p>
  
  <pre><code>select * from Table1 where size::text like '%3';
  </code></pre>
  
  <p>But damn Hibernate takes ::TEXT as self parameter and throws exception.
  How I can avoid this error?
  Thanks.</p>