title: Hibernate filtering query collections
body: <p>I would like to ask if it's possible to do this using hibernate.
  Let say I have already run a HQL and retrieved a collection. Is it possible to further filter it using hibernate?</p>
  
  <p>I tried to use the <code>&lt;filter&gt;</code> to the header class and add session.enable() before the query, but seems it's not working.</p>
  
  <p>Sample code</p>
  
  <pre><code>Query search = session.getNamedQuery(HQL_SOMEDEFAULTQUERY);
  List results = search.list();
  //further filtering ...
  </code></pre>
  
  <p>Stripped down HQL</p>
  
  <pre><code>select h
      from flow as f
      join f.item as i
      join i.header as h
      where i.status = :status
      and f.staff = :staff
      order by i.prId desc
  </code></pre>