The hash code calculation of the EntityKey should also include the hash code of the root entity name.

Description

To reduce collisions in the HashMaps of the StatefulPersistenceContext the hash code calculation of the EntityKey should also include the hash code of the root entity name. Currently the hash code calculation of the EntityKey uses only the hash code of the entity identifier. This is a regression introduced by the issue HHH-8682. Before the hash code of the root entity name was also used to calculate the hash code of the EntityKey.

Environment

None

Status

Assignee

Andrej Golovnin

Reporter

Andrej Golovnin

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

Yes, likely

Requires Release Note

None

backportDecision

None

Components

Affects versions

Priority

Major
Configure