db-jdo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Karan Malhi" <karan.ma...@gmail.com>
Subject fetch group question
Date Mon, 15 Oct 2007 02:37:52 GMT
For a PC object like

class Person{
    String firstName;
    String lastName;
    String address;

Currently I can set a named fetch-group in the .jdo file and add it in
the fetch plan. It would've been great if I would've been able to do
the following:

Query query = pm.newQuery(Person.class);
FetchGroup criteria = new FetchGroup();

Is there a way I can do something like the above (dynamic fetch
groups) with the current spec?
If not, do you think something like this is worth adding to the future
release of JDO?
Would be great to have something like this.

I know that I could project some fields using:
query.setResult("firstName, lastName");

public class Value{
   String firstName;
   String lastName;

But the problem here is that Value is not really a PC class.

Any help would be appreciated.


Karan Singh Malhi

View raw message