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] [Closed] (CAY-1785) SelectQuery<T> for DataRows
Date Wed, 26 Dec 2012 14:12:12 GMT

     [ https://issues.apache.org/jira/browse/CAY-1785?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Andrus Adamchik closed CAY-1785.
--------------------------------

    Resolution: Fixed
    
> 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 = SelectQuery.dataRowQuery(Artist.class);

--
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