add get oid to API of entity