title: Casting Integer to String in JPQL
body: <p>I want to have a JPQL query that may look like:</p>
  
  <pre><code>    entityManager.createQuery("Select a.* from A a WHERE CAST(a.num AS TEXT) LIKE '%345%' ", A.class);
  </code></pre>
  
  <p>where a.num is an integer. I want to cast this to String to use the LIKE criteria.
  However above casting doesnt work in JPQL. Any idea about how can I implement this?</p>