Uploaded image for project: 'Cayenne'
  1. Cayenne
  2. CAY-1785

SelectQuery<T> for DataRows

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 3.2.M1
    • Core Library
    • None

    Description

      Consider this example:

      SelectQuery<Artist> query = new SelectQuery<Artist>(Artist.class);
      query.setFetchingDataRows(true);
      List<Artist> objects = context.select(query);

      The query actually returns List<DataRow>, but it appears that it returns List<Artist>... Looks like we need something like this here:

      SelectQuery<DataRow> drQuery = SelectQuery.dataRowQuery(Artist.class);

      Attachments

        Activity

          People

            andrus Andrus Adamchik
            andrus Andrus Adamchik
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: