title: OpenJpa how to find length of string in JPQL
body: <p>I am using 
  length(ze.string)>2 in openJpa query. but i am getting </p>
  
  <pre><code>SQLCODE=-440, SQLSTATE=42884, SQLERRMC=CHAR_LENGTH;FUNCTION, DRIVER=3.53.95 {prepstmnt 1776269692 SELECT t0.f1, t0.f2, t0.f3, t0.f4, t0.f5, t0.f6, t0.f7, t0.f8, t0.f9, t0.f10, t0.f11, t0.f12, t0.f13, t0.f14, t0.f15, t0.f16, t0.f17 FROM table t0 WHERE (t0.f1 = ? AND CHAR_LENGTH(?) &gt; ? AND .....
  </code></pre>
  
  <p>In plain query when i do length operation i am getting record but using jpa its not working. I looked <a href="https://openjpa.apache.org/builds/1.2.3/apache-openjpa/docs/jpa_overview_query.html" rel="nofollow noreferrer">Here</a> used size it doesn't work. and the field is varchar and db2. trying from past 1 hour.</p>