You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jackrabbit.apache.org by Nigel Sim <ni...@gmail.com> on 2009/07/14 05:33:38 UTC
Querying for bean references
Hi,
I would like to compose a query to find all nodes which have a reference to
another bean. ie:
Class Image:
Camera camera
InputStream data
Class Camera:
String someInfo
String type
So I would like to find all Image where camera is camera (or camera uuid).
I'm using the OCM bindings, and query language.
The follow on question is, can I do joins, like find all images where the
camera type = X
I've looked through the docs and API as best as I could, and I feel that the
JCR Expression might be what I need, but I didn't find any specific
documentation on this feature.
Cheers
Nigel
Re: Querying for bean references
Posted by Christophe Lombart <ch...@gmail.com>.
Hi Nigel,
This kind of query (based on Bean fields) is not yet supported in OCM.
Christophe
2009/7/14 Nigel Sim <ni...@gmail.com>
> Hi,
>
> I would like to compose a query to find all nodes which have a reference to
> another bean. ie:
> Class Image:
> Camera camera
> InputStream data
>
> Class Camera:
> String someInfo
> String type
>
> So I would like to find all Image where camera is camera (or camera uuid).
> I'm using the OCM bindings, and query language.
>
> The follow on question is, can I do joins, like find all images where the
> camera type = X
>
> I've looked through the docs and API as best as I could, and I feel that
> the
> JCR Expression might be what I need, but I didn't find any specific
> documentation on this feature.
>
> Cheers
> Nigel
>