title: Passing parameter to HQL
body: <p>I have one variable like <code>long[] ids = [10, 11]</code> and I am trying to fire query like this :</p>
  
  <pre><code>Query query2 = session.createQuery("update Employee e SET e.isLatest = false where e.id not in (:ids)");
  query2.setParameter("ids", ids);
  query2.executeUpdate();
  </code></pre>
  
  <p>But I am getting error like </p>
  
  <pre><code>org.postgresql.util.PSQLException: ERROR: operator does not exist: bigint &lt;&gt; character varying
    Hint: No operator matches the given name and argument type(s). You might need to add explicit type casts.
  </code></pre>
  
  <p>How can pass array variable in <code>NOT IN</code> parameter? Or Is there any other way for handling such query ?</p>