hql语句查询问题,小弟受教

2025-01-07 17:32:21
推荐回答(1个)
回答1:

String hql="SELECT t FROM Person r left join Permission t WHERE r.personName=:pname";

List list=session.createQuery(hql).setParameter("pname", ‘张三’).list();