public void testForceLeftOuterJoin(){
Session session = null;
session = HibernateUtils.getCurrentSession();
String hql = "select c from Category c left join fetch c.products";
Query query = session.createQuery(hql);
List<Category> list = query.list();
HibernateUtils.closeSession(session);
for(Category c : list){
System.out.println(c.toString());
Set<Product> products = c.getProducts();
for(Product p :products){
System.out.println(p.toString());
}
}
}