title: HQL Where IN for empty list crashes
body: <p>I have an HQL statement like so:</p>
  
  <pre><code>Select cast(ed.employee.employeeID as int) AS emp_id FROM Education AS ed WHERE ed.type.name IN (:typeNames)
  </code></pre>
  
  <p>Sometimes however, typeNames is empty. This causes the following:</p>
  
  <pre><code>org.hibernate.hql.ast.QuerySyntaxException: unexpected end of subtree [Select cast(ed.employee.employeeID as int) AS emp_id FROM Education AS ed WHERE ed.type.name IN ()]
  </code></pre>
  
  <p>What is the solution to make that accept an empty list?</p>