update entitymanager persists