You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by "Andrus Adamchik (JIRA)" <ji...@apache.org> on 2012/12/26 14:54:12 UTC
[jira] [Updated] (CAY-1785) SelectQuery for DataRows
[ https://issues.apache.org/jira/browse/CAY-1785?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andrus Adamchik updated CAY-1785:
---------------------------------
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 = query.queryForDataRows();
was:
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();
> 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.queryForDataRows();
--
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