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.