From users-return-8195-apmail-jackrabbit-users-archive=jackrabbit.apache.org@jackrabbit.apache.org Tue Jul 08 15:18:38 2008 Return-Path: Delivered-To: apmail-jackrabbit-users-archive@locus.apache.org Received: (qmail 57140 invoked from network); 8 Jul 2008 15:18:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 8 Jul 2008 15:18:38 -0000 Received: (qmail 7370 invoked by uid 500); 8 Jul 2008 15:18:27 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 7359 invoked by uid 500); 8 Jul 2008 15:18:27 -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 7318 invoked by uid 99); 8 Jul 2008 15:18:27 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Jul 2008 08:18:27 -0700 X-ASF-Spam-Status: No, hits=1.3 required=10.0 tests=PLING_QUERY,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of aklimets@day.com designates 62.192.10.254 as permitted sender) Received: from [62.192.10.254] (HELO goobak01.day.com) (62.192.10.254) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Jul 2008 15:17:33 +0000 Received: by goobak01.day.com (Postfix, from userid 1212) id A01C450843; Tue, 8 Jul 2008 17:17:24 +0200 (CEST) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.230]) by goobak01.day.com (Postfix) with ESMTP id 36D3C5082E for ; Tue, 8 Jul 2008 17:17:24 +0200 (CEST) Received: by wx-out-0506.google.com with SMTP id i31so968791wxd.28 for ; Tue, 08 Jul 2008 08:17:31 -0700 (PDT) Received: by 10.142.44.11 with SMTP id r11mr1832826wfr.285.1215530251314; Tue, 08 Jul 2008 08:17:31 -0700 (PDT) Received: by 10.142.148.15 with HTTP; Tue, 8 Jul 2008 08:17:31 -0700 (PDT) Message-ID: Date: Tue, 8 Jul 2008 17:17:31 +0200 From: "Alexander Klimetschek" To: users@jackrabbit.apache.org Subject: Re: Incremental node type update?!? In-Reply-To: <272c2bf60807080733y6e25fe96jbc85666908236960@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <272c2bf60807080733y6e25fe96jbc85666908236960@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org Hi Nick, if you want a flexible data structure, go with nt:unstructured. Only use node types and mixins for things you know that are fixed and for which you want to search for easily ( //element(*, my:nodetype) ). In this case you have to re-create content and re-register node types from scratch. But a good JCR application creates its initial node types and content model upon first startup with an empty repository anyway. For reset, you can simply delete the workspace folder (if it contains the persistence manager data such as derby files) except for the workspace.xml, and it will get recreated on the next startup of Jackrabbit. Regards, Alex On Tue, Jul 8, 2008 at 4:33 PM, Nick Stuart wrote: > Is there a way to update node types without have to delete your entire > repository and start over? I dont see a lot of methods on the > NodeTypeManager to allow for really any kind of operation besides > registering types. > > This can't really be an unforseen problem as I imagine data structures are > going to change everywhere, so I think I must be missing something. If I try > to register node types that already exist I of course get an error say its > already there. > > Thanks for the help! > > -Nick > -- Alexander Klimetschek alexander.klimetschek@day.com