Joined inheritance : Same super class field name in embedded type causes embedded field to be ignored

Description

Consider a class hierarchy with JOINED inheritance with an abstract class containing a field "type". The inherited subclass contains an embeddable. The embeddable also has a field named "type".
If you persist the concrete subclass with the embeddable then this field "type" is ignored like a transient field, i.e. it is stored and retrieved as NULL value no matter how it is initially filled.
This is a regression since 5.2.0. All versions before worked correctly.
If you rename one of the fields then it also works correctly again.
It seems that there is a naming conflict introduced with 5.2.0 over inheritance hierarchies.

Test case is attached.

Environment

None

Status

Assignee

Andrea Boriero

Reporter

Matthias Hanisch

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

5.2.1

Priority

Major
Configure