Creating an entity sub graph on inherited attribute fails

Description

Having a mapped super class:

And extending class Foo:

Trying to add Subgraph:

Throws exception:

Reason:
In AttributeNodeImpl,internalMakeSubgraph the declaring type of the attribute is used not the queried managed type.

PR will follow

Environment

None

Assignee

Unassigned

Reporter

Oliver Breidenbach

Fix versions

Labels

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

backportDecision

None

Components

Affects versions

Priority

Critical
Configure