title: HQL check List size passed in @param
body: <p>Is there a way to check <code>util.List</code> size? for example, if is it empty or not?</p>
  
  <p>I tried the below query and it generates <code>QuerySyntaxException</code> with a message <code>??? is not mapped</code></p>
  
  <pre><code>..where (:filters IS EMPTY or  (d.id in (:filters))")
      List&lt;EntityXX&gt; getXXX(List&lt;Integer&gt; filters);
  </code></pre>