Copied parent inserts childs instead of updating them
问题 Describtion To implement multithreading in hibernate & jpa, i deep copy some of my entities. Those copys are used by the sessions to add, remove or update the entities. Problem It worked fine so far, but i ran into a issue with parent/child relations. When i update my parent, its childs are "always" inserted... they never receive any sort of update. And this is pretty bad, because i receive a "Duplicate Key" exception at the second parent-update iteration. My flow currently looks like the