At present, this not possible but I think it should be nice to implement it.
See the issue http://issues.apache.org/jira/browse/JCR-878 (see the latest point in this issue). We can split this issue into smaller ones . On Fri, Oct 17, 2008 at 08:01, Boni Gopalan (BioImagene) < [EMAIL PROTECTED]> wrote: > The Filter is a nifty interface that allows hassle free construction of > JCR query strings through a Criterion() like methods. The default > implementation does a remarkably accurate job of building queries that > are one level deep. It would be great if the queries can be any level > deep so that one can fetch back any specific 'Object' representation of > a node or a property. > > > > Eg. > > > > Foo{ > > String id; > > List<Bar> myBar; > > } > > > > Bar{ > > String id; > > String name; > > } > > > > Filter(Foo.class); [Not exactly but you get the idea!] > > Filter.addEqualsTo("myBar[].name"," C&A's Pub Pub"); > > > > Ocm.getObjects(Filter) , fetches all the Foos with a nested property > name="C&A's Pub" > > > > Any thoughts? Is it possible with the current API?, > > > > Thanks > > Boni > > > > > > > > Boni Gopalan > Manager Engineering > BioImagene, Pune > > +91-206-609-6579(O) > +91-992-369-9356(C) > > > >