Throw exception when metadata attempts to spread @NaturalId across an entity hierarchy

Description

Currently annotations allow definition of @NaturalId across an entity inheritence hierarchy. This is handled correctly in hbm.xml limiting the <natural-id/> element to just the root entity def. We should detect this situation during annotation binding and throw an error.

Environment

None

Assignee

Steve Ebersole

Reporter

Steve Ebersole

Fix versions

Labels

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Major
Configure