HHH-8980 - Instance of super-class not found because of joined subclass reference is an inner join
(cherry picked from commit 651b23b1739a1409dea7e4521f26185d48fbba71)