Property with @Id and @GeneratedValue(strategy=IDENTITY) brokes @NaturalIdCache

Description

The following test case demonstrates the issue.

EntityWithNaturalKey.java

NaturalIdCacheTest.java

Environment

Any.

Status

Assignee

Unassigned

Reporter

Andrey Anisimov

Fix versions

None

Labels

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Affects versions

Priority

Critical
Configure