title: Hibernate SQLQuery with condition in list
body: <p>I am trying to pass a list of integers to SQLQuery. However it throws an error saying <code>"Exception : could not locate named parameter [ids]; nested exception is org.hibernate.QueryParameterException: could not locate named parameter [ids]"</code></p>
  
  <p>This is what my query looks like :</p>
  
  <pre><code>List&lt;Integer&gt; ids = new ArrayList&lt;Integer&gt;(5);
  //Fill something in ids
  return session.createSQLQuery("select igf.foo_id from group_feed igf where igf.id in (:ids)")
      .setMaxResults(pageSize)
      .setParameterList("ids", ids)
      .setResultTransformer(Transformers.aliasToBean(GroupFeed.class))
      .list();
  </code></pre>
  
  <p>What am i doing wrong? Am I not allowed to use <code>setParameterList</code> with <code>Hibernate SQLQuery</code> ? I was not able to make out much from the documentation of Hibernate in jBoss.</p>