public void testUseLeftOuterJoin(){
Session session = null;
session = HibernateUtils.getCurrentSession();
String hql = "select c from Category c left outer join c.products order by c.id";
Query query = session.createQuery(hql);
List<Category> list = query.list();
HibernateUtils.closeSession(session);
for(Category obj : list){
System.out.println(obj.getAllInfo());
}
}