title: Hibernate criteria filter inner collection
body: <p>I have the next classes/tables:</p>
  
  <h2>User</h2>
  
  <ul>
  <li>id</li>
  <li>name</li>
  <li>works // list of work</li>
  </ul>
  
  <h2>Work</h2>
  
  <ul>
  <li>id</li>
  <li>name</li>
  <li>user_id</li>
  </ul>
  
  <p>And the following code:</p>
  
  <pre><code>Criteria criteria = session.createCriteria("User"); 
  criteria.list();
  </code></pre>
  
  <p>returns a list of <code>User</code>s that contain list of <code>Work</code> object assotiated with them (by id=user_id).</p>
  
  <p>How can I modify this query to get the same list of <code>User</code> but with the follow restriction:
  List of <code>Work</code> should not includes <code>Work</code>s where name ='fck'?</p>