title: How to specify a JPA named parameter surrounded by wildcards?
body: <p>How would I specify a JPA query like:</p>
  
  <pre><code>Query q = 
    em.createQuery(
      "SELECT x FROM org.SomeTable x WHERE x.someString LIKE '%:someSymbol%'"
    );
  </code></pre>
  
  <p>followed by:</p>
  
  <pre><code>q.setParameter("someSymbol", "someSubstring");
  </code></pre>
  
  <p>and not triggering a</p>
  
  <pre><code>org.hibernate.QueryParameterException: could not locate named parameter [id]
  </code></pre>
  
  <p>Much appreciated!</p>