Metamodel Generator chooses wrong default access type when child entity in hierarchy hasn't own access type annotation

Description

Hello,
I found strange behavior of Metamodel Generator when child entity hasn't own access type annotation.
For example, we have a java parent class like this:

and child class like this:

When Metamodel Generator process entities he skips field "name" in static metamodel because he choose AccessType.PROPERTY from getId() method.

I have created demo app with this bug to fast reproducing of this bug:

Environment

OS: Windows (and Linux also).
hibernate-core 5.3.6.Final
Maven 3.5.0

Assignee

Unassigned

Reporter

Роджер Весёлый

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Minor
Configure