Instance of super-class not found because of joined subclass reference is an inner join

Description

I have the following model:

em.find(Customer.class, id) generates following sql:

The code above works fine, the customer instance is found.

em.find(User.class, id) generates following sql (should return)

The code above does not work (instance of user not found) since Department join is an inner join. This was not the behavior of earlier versions 3.3.x.

See attached code for complete code and tests.

Environment

None

Status

Assignee

Steve Ebersole

Reporter

Tony Dalbrekt

Fix versions

Labels

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Priority

Major
Configure