In a complicated class hierarchy with multiple inheritance strategies, there is a ManyToOne association ("Task") in a join table entity ("SubEntity") within the hierarchy.
A criteria query is used to load a subset of the entities within the hierarchy based on a property value of the top level entity type:
When the query is executed, there are two selects. The second select should include the foreign key column in the SubEntity table that links to the Task table is missing from the result set. Hibernate attempts to find the column value in a row and fails with: