Having a situation where my java code is symbolic to query -
SELECT CUSTOMER_ID,
CUSTOMER_NAME,
CASE
WHEN COUNT (DISTINCT CARD_ID
This is fairly not possible and just feels like a case missed by JPA. Though if using hibernate API it is possible. But, my workaround was -
Now in the order by you could mention the column name by View.column_name.