title: Hibernate Cannot locate named parameter exception
body: <p>My exception message is:
  </p>
  
  <pre><code>org.hibernate.QueryParameterException: could not locate named parameter [searchKey] at
  org.hibernate.engine.query.spi.ParameterMetadata.getNamedParameterDescriptor(ParameterMetadata.java:148) at 
  org.hibernate.engine.query.spi.ParameterMetadata.getNamedParameterExpectedType(ParameterMetadata.java:165) at
  org.hibernate.internal.AbstractQueryImpl.determineType(AbstractQueryImpl.java:523) at
  org.hibernate.internal.AbstractQueryImpl.setParameter(AbstractQueryImpl.java:493) at
  com.si.bse.dao.impl.SearchDaoImpl.getClientList(SearchDaoImpl.java:99) at 
  com.si.bse.services.impl.SearchServicesImpl.getClientList(SearchServicesImpl.java:32)
  </code></pre>
  
  <p>and the code that is throwing it is:</p>
  
  <pre><code>@SuppressWarnings("unchecked")
  @Transactional
  @Override
  public List&lt;Client&gt; getClientList(String searchWord) {
      String sql = "select * from client c join clientcategory cc on c.id=cc.client_id where match(cc.clientkeyword) against(':searchKey' in boolean mode)";
  
      SQLQuery query = (SQLQuery) getCurrentSession().createSQLQuery(sql).addEntity(Client.class).setParameter("searchKey", searchWord);
  
      List result = query.list();
      return result;
  }
  </code></pre>
  
  <p>Why can Hibernate not find my named parameter?</p>