code: public <D> DtoQuery<D> asDto(Class<D> dtoClass) {
      return query.asDto(dtoClass);
    }
docs: Convert the query to a DTO bean query.
  <p>
  We effectively use the underlying ORM query to build the SQL and then execute
  and map it into DTO beans.