Hibernate compares in-memory collections (Set<SubscriptionMailItem>
) with the snapshot from the database and assumes changes if equals()
or hashCode()
are not aligned.
Or it’s trying to reattach a detached entity in a managed context and assumes some fields may have changed.