Entity::setId took either an EntityId or an int, which where both deprecated. Hence we can deprecate the whole method, as long as we have non-deprecated specific implementations.