| 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 - org.hibernate.engine.spi.EntityKey consumes a lot of memory Closed . Before
HHH-8682 - org.hibernate.engine.spi.EntityKey consumes a lot of memory Closed the hash code of the root entity name was also used to calculate the hash code of the EntityKey. |