HQL to_number()中有子句Select count(*)问题?

high_land 2007-12-06 04:45:36
Hql:
我的Hql检索条件
" and ( " +
" to_number((select count(*) from RemindTarget as rt where ri.remindInfoId = rt.remindInfo.remindInfoId)) > " +
" to_number(((select count(*) from ReadRemind as readR where ri.remindInfoId = readR.remindEntityId " +
" and readR.remindResourceType.remindResourceTypeId = 1 and readR.closeFlag = 1 )) ) "
转意成Sql:
and to_number()>to_number() and (remindinfo0_.REMIND_INFO_ID
子句没有加载
怎么处理?
...全文
485 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
high_land 2007-12-17
  • 打赏
  • 举报
回复
必须用Hql解决地!!!
天外流星 2007-12-13
  • 打赏
  • 举报
回复
如果你用hibernate还用这么复杂的QL,我想还不如用JDBC.
high_land 2007-12-13
  • 打赏
  • 举报
回复
没有人会吗?
joejoe1991 2007-12-08
  • 打赏
  • 举报
回复
学习。。

62,614

社区成员

发帖
与我相关
我的任务
社区描述
Java 2 Standard Edition
社区管理员
  • Java SE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧