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 2013/04/18 21:44:14 UTC
[jira] [Commented] (CAY-1811) Add varargs addPrefetches(String...)
and removePrefetches(String...) to SelectQuery
[ https://issues.apache.org/jira/browse/CAY-1811?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13635587#comment-13635587 ]
Andrus Adamchik commented on CAY-1811:
--------------------------------------
The problem with 'addPrefetches(String...)' is that you can't specify prefetch semantics anymore. At the same time In 3.2 (on trunk) we have addPrefetch(PrefetchTreeNode) , which is used with properties. E.g.:
query.addPrefetch(Artist.PAINTINGS.joint());
In this case semantics is encapsulated in a passed PrefetchTreeNode instance, so this one should be entirely possible to use with vararg.
> Add varargs addPrefetches(String...) and removePrefetches(String...) to SelectQuery
> -----------------------------------------------------------------------------------
>
> Key: CAY-1811
> URL: https://issues.apache.org/jira/browse/CAY-1811
> Project: Cayenne
> Issue Type: Improvement
> Reporter: Michael Gentry
> Priority: Minor
>
> If adding multiple prefetches to a query, it would be more convenient (often, anyway) to specify them in one line than multiple calls.
--
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