Steve Ebersole commented on Bug HHH-7557

The problem you are running into is in fact equals/hashCode problems during loading the Map. The problem is the MapKey and it's use of MapValue in its equals and hashCode calculations. In your situation the equals and hashCodes for MapKey end up changing while it is "in" the Map.

This is confounded by the fact that Hibernate is putting these entries into the map before they are fully initialized. I made a small change here "queue up" the additions until after the ResultSet is done being processed which helps in your case.

But overriding equals and hashCode is always going to leave you open to possible problems unless you are very careful.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira