cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrus Adamchik (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CAY-1785) SelectQuery<T> for DataRows
Date Wed, 26 Dec 2012 13:32:12 GMT
Andrus Adamchik created CAY-1785:
------------------------------------

             Summary: SelectQuery<T> for DataRows
                 Key: CAY-1785
                 URL: https://issues.apache.org/jira/browse/CAY-1785
             Project: Cayenne
          Issue Type: Improvement
          Components: Core Library
            Reporter: Andrus Adamchik
            Assignee: Andrus Adamchik
             Fix For: 3.2M1


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 = query.dataRowsQuery();




--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message