title: Hibernate could not locate named parameter even if it exist
body: <p>Hibernate Keeps detecting </p>
  
  <pre><code>org.hibernate.QueryParameterException: could not locate named parameter [name]
  </code></pre>
  
  <p>even though it exist. here's my hql</p>
  
  <pre><code>Query query = sess().createQuery("from UserProfile where firstName LIKE '%:name%'").setParameter("name", name);
  </code></pre>
  
  <p>Why does hibernate keeps throwing that exception? even though the parameter exist?</p>