我有一个 hql:
q =session.createQuery("from DrugIndentDetails as a where a.drugbase.office.hierarchy_Id=:officeid and a.drugbase.year=:yr and a.drugbase.type=:status and a.drugbase.version=:version group by a.drugmaster.drugId order by a.drugmaster.drugCode")
.setParameter("yr", yr)
.setParameter("officeid",officeid)
.setParameter("status", status)
.setParameter("version", version);
在查询的结果中,我想使用连接查询从其他表中选择值
这可能吗!!!!!