Return-Path: Delivered-To: apmail-jackrabbit-users-archive@minotaur.apache.org Received: (qmail 90574 invoked from network); 9 Feb 2011 14:33:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 9 Feb 2011 14:33:09 -0000 Received: (qmail 26183 invoked by uid 500); 9 Feb 2011 14:33:09 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 26053 invoked by uid 500); 9 Feb 2011 14:33:07 -0000 Mailing-List: contact users-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@jackrabbit.apache.org Delivered-To: mailing list users@jackrabbit.apache.org Received: (qmail 26041 invoked by uid 99); 9 Feb 2011 14:33:06 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Feb 2011 14:33:06 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of aklimets@adobe.com designates 64.18.1.27 as permitted sender) Received: from [64.18.1.27] (HELO exprod6og111.obsmtp.com) (64.18.1.27) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Feb 2011 14:32:58 +0000 Received: from source ([192.150.11.134]) by exprod6ob111.postini.com ([64.18.5.12]) with SMTP ID DSNKTVKlhXj+fqNcwfRf1x/bknUfncFino4p@postini.com; Wed, 09 Feb 2011 06:32:38 PST Received: from inner-relay-4.eur.adobe.com ([192.150.8.237]) by outbound-smtp-1.corp.adobe.com (8.12.10/8.12.10) with ESMTP id p19EW1oe011802 for ; Wed, 9 Feb 2011 06:32:02 -0800 (PST) Received: from nacas02.corp.adobe.com (nacas02.corp.adobe.com [10.8.189.100]) by inner-relay-4.eur.adobe.com (8.12.10/8.12.9) with ESMTP id p19EWB5t012438 for ; Wed, 9 Feb 2011 06:32:35 -0800 (PST) Received: from eurhub01.eur.adobe.com (10.128.4.30) by nacas02.corp.adobe.com (10.8.189.100) with Microsoft SMTP Server (TLS) id 8.2.254.0; Wed, 9 Feb 2011 06:32:11 -0800 Received: from eurmbx01.eur.adobe.com ([10.128.4.32]) by eurhub01.eur.adobe.com ([10.128.4.30]) with mapi; Wed, 9 Feb 2011 14:32:09 +0000 From: Alexander Klimetschek To: "users@jackrabbit.apache.org" Date: Wed, 9 Feb 2011 14:32:07 +0000 Subject: Re: How Does Jack Rabbit Generate Its UUID Thread-Topic: How Does Jack Rabbit Generate Its UUID Thread-Index: AcvIZiGi9khn+HFdRdW0JCf2tipdOw== Message-ID: In-Reply-To: Accept-Language: de-DE, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Microsoft-MacOutlook/14.0.0.100825 acceptlanguage: de-DE, en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 On 09.02.11 15:25, "Carlo Camerino" wrote: >is there anyway that I could relate this UUID to the filename? >how does jackrabbit compute what file name to fetch based on the UUID >attribute ? Why do you want to do that? The generation of the UUID is implementation specific. You can get it with getUUID() (for mix:referenceable nodes) or with getIdentifier() (in JCR 2.0). But in most cases when you model content or use the JCR API you want to use paths instead of UUIDs: http://wiki.apache.org/jackrabbit/DavidsModel#Rule_.237:_ID.27s_are_evil. And how nodes and properties are stored on the file system is an implementation detail of the persistence manager. You should use the JCR API to access things, just as you don't access the database files of a RDBMS. Regards, Alex --=20 Alexander Klimetschek Developer // Adobe (Day) // Berlin - Basel