jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Charles Flond <cfl...@jahia.com>
Subject Re: Keep nodes order with JCR-SQL2 queries
Date Tue, 03 May 2011 12:07:36 GMT
Hi Alex,

It works perfectly ! Thanks for your help.

Charles

On Mon, May 2, 2011 at 3:57 PM, Alexander Klimetschek <aklimets@adobe.com>wrote:

> On 02.05.11 15:44, "Charles Flond" <cflond@jahia.com> wrote:
> >Now, I perform a JCR-SQL2 query like that : select * from [jnt:content] as
> >content where ISDESCENDANTNODE(content,'/sites/demo/home/maincontent/')
>
> Don't use a query for this, but the navigational access:
>
> session.getNode("/sites/demo/home/maincontent/").getNodes()
>
> This gives you the order, will be faster & more efficient than a query.
>
> Regards,
> Alex
>
> --
> Alexander Klimetschek
> Developer // Adobe (Day) // Berlin - Basel
>
>
>
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message