JPQL statement returning boolean value

后端 未结 3 2057
北海茫月
北海茫月 2020-12-29 18:24

Is it possible to write JPQL query like following:

select count(*) > 0 from Scenario scen where scen.name = :name

that would return true/fals

3条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-29 19:11

    I was having the same problem, then I updated my hibernate to 4.3.11.Final and now it's working.

提交回复
热议问题