This line merges the newly created (detached) entity into the current persistence context effectively overwriting the old one. Is this really what you want to do here?