title: How can I test a boolean parameter in a NamedQuery with JPA?
body: <p>How can I tell JPA (EclipseLink 2.4) to check a boolean IN parameter whether it is true or false?</p>
  
  <pre><code>SELECT e FROM MyEntity e WHERE :inParam = TRUE AND e.x = 'bla'
  </code></pre>
  
  <blockquote>
    <p>or</p>
  </blockquote>
  
  <pre><code>SELECT e FROM MyEntity e WHERE :inParam = true AND e.x = 'bla'
  </code></pre>
  
  <p>Doing it as above results in an exception that <em>TRUE</em> wouldn't be a valid value for <em>inParam</em>.</p>