Attribute in metamodel is null for overridden property

Description

If a property of an entity is overridden in an extending class the corresponding attribute of the metamodel of the extending class is not initialized. It stays null.
I am overridden the getter to add validation constraints.
I extended the MappedSuperclassWithAttributesTest test to show the problem.
We migrated from Wildfly 8.2 (Hibernate 4.3.11) to Wildfly 10.1 (Hibernate 5.0.10).
With Hibernate 4.3.11 the attribute of the metamodel was not null.
PR with test case will follow.

See also: https://forum.hibernate.org/viewtopic.php?f=1&t=1043571

Environment

None

Assignee

Unassigned

Reporter

Oliver Breidenbach

Fix versions

None

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

backportDecision

None

Affects versions

Priority

Minor
Configure