title: Why is JPA throwing SQLCODE=-302, SQLSTATE=22001 for select query
body: <p>I'm trying to frame a select query using JPA repository. </p>
  
  <pre><code>select * 
  from Foo 
  where name = 'testapp'.
  </code></pre>
  
  <p>The "NAME" column is defined as varchar(4). My program throws SQLCODE=-302, SQLSTATE=22001 for the select operation whereas I get the same query working in  the SQL developer IDE.</p>