| The user guide says that the polymorphic query for InheritanceType.TABLE_PER_CLASS is using UNION ALL to union all of the subclass tables. However, after some experiments, I found that the query is actually using UNION instead of UNION ALL. I am not sure which one is the desired behavior, but I will submit a PR to correct the user guide. |