EntityType cannot locate id attribute of Entity which use another Entity as id type

Description

Having mapping like this:

which is same as example 4 case (a) in section 2.4.1.3 of JPA 2.2 Specification.
When EntityManagerFactory is used to lookup EntityType of EntityB:

Methods of retrieved EntityType instance cannot locate id attributes of persistend type EntityB

Environment

jdk 8 & jdk 13

Assignee

Unassigned

Reporter

Bartlomiej Niemiec

Fix versions

None

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Major
Configure