Union All and Sum with JPA CriteriaBuilder

后端 未结 4 1344
余生分开走
余生分开走 2021-02-06 09:06

I am trying to convert a native SQL query to use the Criteria API in JPA 2.0. I have found a lot of Criteria API examples on Google, but I am having a really hard time putting

4条回答
  •  野趣味
    野趣味 (楼主)
    2021-02-06 09:17

    If you need Union All, then two entities are candidates to apply inheritance to them in my mind.

提交回复
热议问题