Sylvain Dusart (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=63f6394...
) *commented* on HHH-16218 (
https://hibernate.atlassian.net/browse/HHH-16218?atlOrigin=eyJpIjoiOTJlYT...
)
Re: Natural id cache is extremely slow for entities with compound natural id (
https://hibernate.atlassian.net/browse/HHH-16218?atlOrigin=eyJpIjoiOTJlYT...
)
I think the hashCode must be computed on the result of disassemble( value, session ),
otherwise each part of the compound natural id would require an implementation of
equals/hashCode methods (not the case for the State class used in
NaturalIdTest#testNaturalIdLoaderCached).
I have pushed my modifications to
https://github.com/sdusart/hibernate-orm/tree/HHH-16218
(
https://github.com/sdusart/hibernate-orm/tree/HHH-16218 ) but I’m really not sure of
what I did…
./gradlew clean build finishes successfully...
(
https://hibernate.atlassian.net/browse/HHH-16218#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-16218#add-comment?atlOrigin=ey...
)
Get Jira notifications on your phone! Download the Jira Cloud app for Android (
https://play.google.com/store/apps/details?id=com.atlassian.android.jira....
) or iOS (
https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=Em...
) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100216- sha1:64a4cf6 )