Nested ID classes fail with AnnotationException: Column name game_id of x.x.PlayerStat not found in JoinColumns.referencedColumnName

Description

I get an exception:

Mappings are shown below:

NestedScore:

NestedScoreId:

NestedPlayerStat:

NestedPlayerStatId:

NestedStat:

NestedStatId:

Fails on deploying to the server.

I already tried a Hibernate test case - fails. PR for test case is coming...

Environment

WildFly 20, Hibernate 5.4.24

Activity

Show:
Ka Wu
November 22, 2020, 7:27 PM

This is a followup issue of

Ka Wu
November 22, 2020, 7:42 PM
Edited

Test case added to my Hibernate’s fork, branch HHH-14343:

Ka Wu
November 23, 2020, 8:34 PM
Edited

This works not using globally quoted identifiers = true.

Fixed

Assignee

Christian Beikov

Reporter

Ka Wu

Fix versions

Labels

backPortable

Backport?

Suitable for new contributors

None

Requires Release Note

None

backportDecision

None

Components

Affects versions

Priority

Critical
Configure