Is it possible to write JPQL query like following:
select count(*) > 0 from Scenario scen where scen.name = :name
that would return true/fals
Yes, it is possible with following:
select case when (count(scen) > 0) then true else false end from Scenario scen where scen.name = :name