On Dec 11, 2008, at 11:09 PM, Andy Jefferson wrote:
Looking at the 2.2 spec, there's an example in section 12.7.6 (page
134-5) which references the use of "." and "#(element|key|value)"
when defining fetch groups in the metadata, e.g. user.company.name
or user.roles#element.name.
It's not clear, however, whether this notation should or shouldn't
be valid when using the FetchGroup.addMembers() programmatic API
(page 137). I think they should be equivalent, but the spec is not
explicit here and it appears the RI does not implement this behavior.
it appears the RI does not implement this behavior.
Wes,
The RI does not support that notation. at. all. Since you're keen on
having
this, you could implement
http://www.jpox.org/servlet/jira/browse/CORE-2515
which was raised in 2005. Since there are other ways of specifying
the same
thing it never features very high on my priority list ...
I agree that the dot notation can be accomplished via the existing
API, but it's not as obvious to me that the #element, #key, and #value
feature fits. The JIRA mentioned above doesn't address the # usage.
Craig
Regards
--
Andy (DataNucleus - http://www.datanucleus.org)
Craig L Russell
Architect, Sun Java Enterprise System http://db.apache.org/jdo
408 276-5638 mailto:[email protected]
P.S. A good JDO? O, Gasp!