JPA命名查询将错误视为正确表达式不是有效表达式,并且查询包含格式错误的结尾

时间:2018-02-14 11:26:12

标签: jpa jpql

我有命名查询,如下所示,并传递动态参数

  select count(table1) from Table1 table1 where table1.nameId in 
  (select table2.nameId from Table2 table2 where table2.hicNumber =:value0) 
  and table1.indicator = :value1 
  and table1.startDate = :value2 
  and NVL(table1.endDate,'31-DEC-2999')=NVL(:value3,'31-DEC-2999')

它将错误视为

[235, 255] The right expression is not a valid expression.
[256, 297] The query contains a malformed ending.

你能帮我解决我做错的事吗?

0 个答案:

没有答案