Java 使用hibernatetemplate的HQL
我试图将子查询添加到现有查询中,并使用hibernate模板运行Java 使用hibernatetemplate的HQL,java,oracle,hibernate,Java,Oracle,Hibernate,我试图将子查询添加到现有查询中,并使用hibernate模板运行 String query = "from Dispatch where ID='1011' and createdDt > sysdate - (coalesce((select timeout/60 from AppDetails where appId='1071'),10)/1440)"; List<Dispatch> dipatchhibernateTemplate.find(query); 然后我们
String query = "from Dispatch where ID='1011' and createdDt > sysdate - (coalesce((select timeout/60 from AppDetails where appId='1071'),10)/1440)";
List<Dispatch> dipatchhibernateTemplate.find(query);
然后我们得到的错误是二进制运算符的右操作数为空
我试着四处搜索,但找不到任何正确的结果
如果有人可以帮助我如何使用hibernate标准进行转换也可以
能找个人帮忙吗