jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexander Klimetschek <aklim...@adobe.com>
Subject Re: GQL query for fetching a file node by UUID
Date Wed, 01 Aug 2012 14:23:42 GMT
On 31.07.2012, at 22:31, Peri Subrahmanya <peri.subrahmanya@gmail.com> wrote:

> I was wondering what the query will look like if I had the UUID of the fileNode to retrieve
using GQL.

In Xpath, you can do //*[@jcr:uuid='87b8648b-1fc0-4886-8e16-c439580bcf1f'], and since jackrabbit-jcr-commons
GQL translates to an Xpath query internally, you might try:


But note that using Session.getNodeByIdentifier(String id) is simpler and faster.


View raw message