Is there any way to do the following in HQL:
SELECT case when flag = true then SUM(col1) else SUM(col2) FROM myTable
See Hibernate-Forum: https://forum.hibernate.org/viewtopic.php?t=942197
Answer from Team (Gavin): case is supported in the where clause, but not in the select clause in HB3.
And seen in JIRA with State "Unresolved".