Skip to content

Commit

Permalink
HHH-13160 - Polymorphic query for InheritanceType.TABLE_PER_CLASS is …
Browse files Browse the repository at this point in the history
…not using UNION ALL
  • Loading branch information
vladmihalcea committed Dec 18, 2018
1 parent e3eeba9 commit 7358893
Showing 1 changed file with 15 additions and 0 deletions.
Expand Up @@ -310,6 +310,21 @@ include::{extrasdir}/entity-inheritance-table-per-class-query-example.sql[]
[IMPORTANT]
====
Polymorphic queries require multiple UNION queries, so be aware of the performance implications of a large class hierarchy.
Unfortunatelly, not all database systems support UNION ALL, so if your current Hibernate dialect does not extend any of these dialects, then UNION is going to be used instead of UNION ALL.
- `AbstractHANADialect`
- `AbstractTransactSQLDialect`
- `CUBRIDDialect`
- `DB2Dialect`
- `H2Dialect`
- `HSQLDialect`
- `Ingres9Dialect`
- `MySQL5Dialect`
- `Oracle8iDialect`
- `Oracle9Dialect`
- `PostgreSQL81Dialect`
- `RDMSOS2200Dialect`
====

[[entity-inheritance-polymorphism]]
Expand Down

0 comments on commit 7358893

Please sign in to comment.