Inappropriate INNER JOIN on query with inheritance relations

Description

I've declared model like this:

When I try to create a HQL query like this:

it's translate to:

As a one WorkOrder.assignedTo can't be on both type at same time I always get 0 records.

If I change inner join of inheritance tables to left join I get the right result:

Environment

linux, postgreSQL 9.3

Assignee

Unassigned

Reporter

Jose Manuel Vivó Arnal

Fix versions

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Affects versions

Priority

Major
Configure