String hql="SELECT t FROM Person r left join Permission t WHERE r.personName=:pname";List list=session.createQuery(hql).setParameter("pname", ‘张三’).list();