If you want only the primary key to be fetched, then you should specify fetch groups in your fetch plan that do not include "default" and don't include any of the other fields in the reached class.
Hi,
in the spec, in §12.7.2 it reads
"Recursive fetch group references are controlled by the fetch-depth
attribute. A fetch-depth of 0 will fetch the whole graph of
instances reachable from this field. The default is 1, meaning that
only the instance directly reachable from this field is fetched."
For a fetch-depth of 1, when we fetch such a reachable instance, what fields of that instance should be fetched exactly? All I know is we must not fetch any of its object fields, as recursion stops here. One solution would be to fetch only the primary key, would that be in the sense of the specification? It might seem strange, but for my application this makes the most sense.
Regards,
Jörg
--
__________________________________________________________
Dipl.-Inf. Jörg von Frantzius | artnology GmbH
| Milastr. 4
Tel +49 (0)30 4435 099 26 | 10437 Berlin
_______________________________|__________________________
P.S. A good JDO? O, Gasp!