10-15-07 06:11 PM
Hi Karan,
Currently, there is no standardized way to dynamically define fetch
groups. We'll look into adding this to the specification. You might
consider requesting this of your current JDO vendor.
Thanks for your feedback!
Sincerely,
Matthew
On Oct 14, 2007, at 7:43 PM, Karan Malhi wrote:
> Sorry,
>
> The code should read as:
> Query query = pm.newQuery(Person.class);
> FetchGroup criteria = new FetchGroup(Person.class);
> // or I could also do
> // FetchGroup criteria = new FetchGroup(query);
>
> criteria.add("firstName").add("lastName");
> query.getFetchPlan().clearGroups().addGroup(criteria);
>
> On 10/14/07, Karan Malhi <karan.malhi@gmail.com> wrote:
>
>
> --
> Karan Singh Malhi
[ Post a follow-up to this message ]
|