title: When using setFetchMode in Hiberate criteria how do I set a restriction on the oneToMany table
body: <p>I'm struggling to create a Hibernate criteria query that uses setFetchMode(... SELECT) and places a restriction on the returned child records. If I use a creteAlias as recommended it produces an inner join thereby making accurate pagination all but impossible.</p>
  
  <p>The code would be like:-</p>
  
  <pre><code>Criteria criteria = this.getSession().createCriteria(Mother.class);
  criteria.addOrder(Order.asc("title"))
  // .createAlias("children", "childrenAlias") had to remove
  .add(Restrictions.eq("childAge", "5")) // how do I reference childAge?
  .setMaxResults(details.getMaxRows())
  .setFirstResult(details.getStart())
  .setFetchMode("children", FetchMode.SELECT);
  </code></pre>