departments = departmentsQuery.list();
assertEquals("Incorrect department count", 0, departments.size());
log.info("Criteria query against Order with a subquery for line items with a subquery on product and sold by a given sales person...");
session.enableFilter("region").setParameter("region", "APAC");
DetachedCriteria lineItemSubquery = DetachedCriteria.forClass(LineItem.class)
.add( Restrictions.ge( "quantity", 1L ) )
.createCriteria( "product" )
.add( Restrictions.eq( "name", "Acme Hair Gel" ) )