2.13.6.3.2. Disadvantages
Polymorphic relations to non-leaf classes in a table-per-class hierarchy have many limitations.
When the concrete subclass is not known, the related object could be in any of the subclass tables, making joins through the relation impossible.
This ambiguity also affects identity lookups and queries; these operations require multiple SQL SELECTs (one for each possible subclass), or a complex UNION.
|
|
Table Per Class in the Reference Guide describes the limitations OpenJPA places on table-per-class mapping. |