ORDER BY in Criteria API for a computed column name (by alias)

后端 未结 4 948
广开言路
广开言路 2021-01-26 04:15

Having a situation where my java code is symbolic to query -

  SELECT CUSTOMER_ID,
         CUSTOMER_NAME,
         CASE
             WHEN COUNT (DISTINCT CARD_ID         


        
4条回答
  •  不知归路
    2021-01-26 05:06

    It seems this is not possible with the JPA Criteria API and you will have to fallback to using JPQL/HQL instead.

提交回复
热议问题