Invalid mapping when redefining a column name in a list of embedded

Description

So this issue was first raised in https://hibernate.atlassian.net/browse/OGM-893 comments: https://hibernate.atlassian.net/browse/OGM-893?focusedCommentId=74674&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-74674

This report is based on the test org.hibernate.ogm.backendtck.embeddable.EmbeddableExtraTest.

When redefining the column name of an embeddable embedded in a list (here the zipCode as postal_code), we end up with the following mapping:

There are 2 levels of "addresses" which is wrong.

Environment

None

Assignee

Guillaume Smet

Reporter

Guillaume Smet

Labels

None

Feedback Requested

None

Feedback Requested By

None

backPortable

None

Suitable for new contributors

None

Pull Request

None

backportDecision

None

backportReEvaluate

None

Components

Sprint

Fix versions

Affects versions

Priority

Major
Configure