Is it possible to write JPQL query like following:
select count(*) > 0 from Scenario scen where scen.name = :name
that would return true/fals
I was having the same problem, then I updated my hibernate to 4.3.11.Final and now it's working.