We're updating the issue view to help you get more done. 

Failure with entity relationship using discriminator formula

Description

Hibernate has introduced a new code snippet in AnnotationBinder.processElementAnnotations, that validates if the properties are inherited from a super class. If they are inherited, then remaining part of the method is not executed. In our case, it ignores a property as it is coming from a mapped super class. But, it remains ignored and never gets to the place where it is needed. In simple terms, this property comes neither from mapped super class nor from the sub class (ignored by both, assuming the other one processes it). Attached file shows how the entity is related. The error happens when the Notary entity is one-to-one mapped with Person entity on person_id column. Person_id column is not getting recognized from the Person entity hierarchy and exception is thrown (Not a single mapped property exception message)

Environment

Java: 1.8
Spring:

Status

Assignee

Unassigned

Reporter

Arun S

Fix versions

None

backPortable

None

Suitable for new contributors

Yes, likely

Requires Release Note

None

Pull Request

None

backportDecision

None

Worked in

5.1.0

Components

Affects versions

5.1.2
5.2.2
5.1.3
5.0.12
5.1.1

Priority

Major