JPA implementation must guarantee that for every p...
# random
k
JPA implementation must guarantee that for every pair (a, b) of attached entities the following is true:
a == b
iff
a.id == b.id
. So why compare objects by their properties, while you can compare them by identity?