update == in entity, oid and id