HQL subquery with constraint property in superclass does not join superclass table

Description

Given the following entities:

For the query:

NOTE: employee.firstName is in Person table (not Employee)

The following SQL is generated:

The alias, employees1_1_ does not correspond to any table involved in the query. Person table should have been joined with Employee because firstName is declared in Person.

Environment

None

Status

Assignee

Andrea Boriero

Reporter

Gail Badner

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Major
Configure