@MapsId stopped working correctly migrating from hibernate 5.3 to 5.4

Description

I have a relationship similar to this one:

and

and while everything worked fine until hibernate 5.3, it does not work anymore with 5.4, with this error:

Caused by: org.hibernate.id.IdentifierGenerationException: null id generated for:class EntityB

Environment

None

Status

Assignee

Gail Badner

Reporter

Alessandro Polverini

Fix versions

None

Labels

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Worked in

5.3.10

Components

Affects versions

Priority

Blocker
Configure