当前位置: 代码迷 >> J2EE >> hql 有关问题
  详细解决方案

hql 有关问题

热度:114   发布时间:2016-04-22 02:47:31.0
hql 问题
正常 的 sql 语句 :select * from (select * from tbOverTime where EmpName not like 'empName') t where t.Flag like '未确认' or t.CheckMan like 'empName';
怎么改成 HQL

------解决方案--------------------
就用SQLQuery吧。。。这个HQL没写过。。。
------解决方案--------------------
你这个是一个表的自关联啊。用这样不行吗?
from TbOverTime where EmpName not like '%empName%' and Flag like '未确认'
  相关解决方案