UNION to JPA Query

前端 未结 7 936
日久生厌
日久生厌 2020-12-01 15:57

Is it possible to query \"UNION\" in JPA and even \"Criteria Builder\"?

I\'m looking for examples, but so far i got no result.

Does anyone have any examples

7条回答
  •  误落风尘
    2020-12-01 16:23

    SQL supports UNION, but JPA 2.0 JPQL does not. Most unions can be done in terms of joins, but some can not, and some are more difficult to express using joins.

    EclipseLink supports UNION.

提交回复
热议问题