From users-return-11790-apmail-jackrabbit-users-archive=jackrabbit.apache.org@jackrabbit.apache.org Tue Jul 07 10:43:29 2009 Return-Path: Delivered-To: apmail-jackrabbit-users-archive@minotaur.apache.org Received: (qmail 2264 invoked from network); 7 Jul 2009 10:43:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 7 Jul 2009 10:43:29 -0000 Received: (qmail 18300 invoked by uid 500); 7 Jul 2009 10:43:39 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 18238 invoked by uid 500); 7 Jul 2009 10:43:39 -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 18227 invoked by uid 99); 7 Jul 2009 10:43:39 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Jul 2009 10:43:39 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of aklimets@day.com designates 207.126.148.181 as permitted sender) Received: from [207.126.148.181] (HELO eu3sys201aog001.obsmtp.com) (207.126.148.181) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 07 Jul 2009 10:43:30 +0000 Received: from source ([209.85.219.225]) by eu3sys201aob001.postini.com ([207.126.154.11]) with SMTP ID DSNKSlMmuREPNShvPqSDHjxCccjHEPo7N+Lm@postini.com; Tue, 07 Jul 2009 10:43:09 UTC Received: by ewy25 with SMTP id 25so974803ewy.40 for ; Tue, 07 Jul 2009 03:43:05 -0700 (PDT) MIME-Version: 1.0 Received: by 10.216.74.14 with SMTP id w14mr1515865wed.153.1246963385592; Tue, 07 Jul 2009 03:43:05 -0700 (PDT) In-Reply-To: <5bab330d0907070320r224cbf8x3ac6430db816b96d@mail.gmail.com> References: <5bab330d0907070320r224cbf8x3ac6430db816b96d@mail.gmail.com> Date: Tue, 7 Jul 2009 12:43:05 +0200 Message-ID: Subject: Re: Generating unique path From: Alexander Klimetschek To: users@jackrabbit.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org On Tue, Jul 7, 2009 at 12:20 PM, Nigel Sim wrote: > In my use case for Jackrabbit I do not have a direct use for paths. I just > have object with properties and relationships which I want to store, and > later retrieve via searching those attributes. If you really want to do this, I don't think JCR is the right choice for you. But I strongly suggest to look for hierarchical structures in your data from which you can build the paths. > Is there a way/class/factory I can use to auto generate a unique path > property? No, because paths should always make sense to the developer/user. Regards, Alex -- Alexander Klimetschek alexander.klimetschek@day.com