日期:2014-05-20 浏览次数:20778 次
String hql = "from 实体类 where 实体类的属性=条件 ";
------解决方案--------------------
select dept_name,user_true_name from sys_user,sys_department where sys_department.dept_id =2 and user_role_id =3 and sys_department.dept_id=sys_user.dept_id
from 实体 as a ,实体 as b where a.deptId=2 and a.userRoleId=3 and b.DeptId=a.DeptId
------解决方案--------------------
2楼,3楼正解