switch EntityId implementations