Metamodel returns incorrect identifier types if they're a generic field of a superclass

Description

Assume the following code:

Bootstrapping an EntityManager for those types and trying to look up the type of the identifier property for ConcreteEntity returns Serializable instead of Long.

Find a reproducing example in this commit. Steps to reproduce:

The build uses Hibernate 5.1 by default but the version can be tweaked by using the profiles declared in the parent POM.

Environment

None

Status

Assignee

Unassigned

Reporter

Oliver Gierke

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