.add( Restrictions.isNotNull("name") )
.createCriteria("proxyArray")
.add( Restrictions.eqProperty("name", "name") )
.add( Restrictions.eq("name", "g2") )
.add( Restrictions.gt("x", new Integer(-666) ) );
crit.createCriteria("fooSet")
.add( Restrictions.isNull("null") )
.add( Restrictions.eq("string", "a string") )
.add( Restrictions.lt("integer", new Integer(-665) ) );
crit.createCriteria("fooArray")
// this is the bit causing the problems; creating the criteria on fooArray does not add it to FROM,