title: Hibernate checking all elements equal in collection
body: <p>I have two entities i.e Person and Activity. Activity has property status and Person entity contains collection of activities. I'd like to get a list of persons that have all activities with status 'Done'.</p>
  
  <pre><code>   Criteria crit = s.createCriteria(Person.class);
     crit.createAlias("activities", "act").add(Restrictions.eq("act.status","Done"));
  </code></pre>
  
  <p>But this return all object with at least one activity with status done. I 'd like to retrive list of person with all activities status set to Done. Can anyone help me?</p>