You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The DefaultRecord implementation compares and hashes only based on its id field. Two records could have the same id but different contents (a violation of the contract mind you) but still be considered the same.
In my opinion this is unexpected. The built-in equality and hash for a POJO should do the normal expected field-by-field comparison. And if special places in the code (e.g. record deduplication) need to perform hash-by id or equality by id they should do so explicitly.
The text was updated successfully, but these errors were encountered:
The
DefaultRecord
implementation compares and hashes only based on its id field. Two records could have the same id but different contents (a violation of the contract mind you) but still be considered the same.In my opinion this is unexpected. The built-in equality and hash for a POJO should do the normal expected field-by-field comparison. And if special places in the code (e.g. record deduplication) need to perform hash-by id or equality by id they should do so explicitly.
The text was updated successfully, but these errors were encountered: