HBM many-to-one property-ref broken since 5.3.2 due to HHH-12684

Description

As per the discussion https://discourse.hibernate.org/t/mappingexception-after-update-from-5-2-17-to-5-4-22 I nailed the problem down to this commit https://github.com/hibernate/hibernate-orm/commit/97286943868bbadb43e892e517a07bf232702058 introduced for

The logic for determining the inverse many-to-one is faulty.

Environment

None
Fixed

Assignee

Christian Beikov

Reporter

Christian Beikov

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Worked in

5.2.18
5.3.1

Components

Affects versions

Priority

Major
Configure