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.
More Related Contents:
- How to properly express JPQL “join fetch” with “where” clause as JPA 2 CriteriaQuery?
- Connection to Db dies after >4
- How to choose the id generation strategy when using JPA and Hibernate
- Using generics in Spring Data JPA repositories
- How to view the SQL queries issued by JPA?
- JPQL Create new Object In Select Statement – avoid or embrace?
- Hibernate, @SequenceGenerator and allocationSize
- What is the difference between Unidirectional and Bidirectional JPA and Hibernate associations?
- “detached entity passed to persist error” with JPA/EJB code
- Spring Data JPA – “No Property Found for Type” Exception
- JPA/Hibernate Native Queries do not recognize Parameters
- Please explain about insertable=false and updatable=false in reference to the JPA @Column annotation
- What is the easiest way to ignore a JPA field during persistence?
- @Transactional method called from another method doesn’t obtain a transaction
- Hibernate bidirectional @ManyToOne, updating the not owning side not working
- Spring boot JPA insert in TABLE with uppercase name with Hibernate
- How to get distinct results in hibernate with joins and row-based limiting (paging)?
- Is there such thing CASE expression in JPQL?
- When are connections returned to the connection pool with Spring JPA (Hibernate) Entity Manager?
- JPQL: Receiving a Collection in a Constructor Expression
- How to map sql native query result into DTO in spring jpa repository?
- use of entityManager.createNativeQuery(query,foo.class)
- Persisting UUID in PostgreSQL using JPA
- JpaRepository caches newly created object. How to refresh it?
- HQL joined query to eager fetch a large number of relationships
- Clarifying terminology – What does “hydrating” a JPA or Hibernate entity mean when fetching the entity from the DB
- What properties does @Column columnDefinition make redundant?
- DAO and Service layers (JPA/Hibernate + Spring) [duplicate]
- org.hibernate.loader.MultipleBagFetchException: cannot simultaneously fetch multiple bags
- JPA Updating Bidirectional Association