title: Parameter in like clause JPQL
body: <p>I am trying to write a JPQL query with a like clause:</p>
  
  <pre><code>LIKE '%:code%'
  </code></pre>
  
  <p>I would like to have code=4 and find</p>
  
  <pre>
  455
  554
  646
  ...
  </pre>
  
  <p>I cannot pass <code>:code = '%value%'</code></p>
  
  <pre><code>namedQuery.setParameter("%" + this.value + "%");
  </code></pre>
  
  <p>because in another place I need <code>:value</code> not wrapped by the <code>%</code> chars. Any help?</p>