before persist: id=null, set.contains(item)=true after persist : id assigned=true, hashCode changed, set.contains(item)=false