When I try to use the "case...when...then...else...end" like in the following query "SELECTCASE WHEN g.name="a" THEN "e" ELSE "o" END g from Guest g", I get the issue:
Unexpected query token 'CASE'
SELECT ==> CASE <== WHEN g.name="a" THEN "e" ELSE "o" END g from Guest g
Have I mismatched something or is it an issue with ObjectDB? Anyone could help me on how to use the "case" in JPQL?
Thank you in advance.