Return-Path: Delivered-To: apmail-jackrabbit-users-archive@minotaur.apache.org Received: (qmail 49909 invoked from network); 4 Feb 2010 14:57:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 4 Feb 2010 14:57:23 -0000 Received: (qmail 42556 invoked by uid 500); 4 Feb 2010 14:57:23 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 42493 invoked by uid 500); 4 Feb 2010 14:57:23 -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 42480 invoked by uid 99); 4 Feb 2010 14:57:23 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Feb 2010 14:57:23 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of aklimets@day.com designates 207.126.148.89 as permitted sender) Received: from [207.126.148.89] (HELO eu3sys201aog103.obsmtp.com) (207.126.148.89) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 04 Feb 2010 14:57:13 +0000 Received: from source ([209.85.218.221]) by eu3sys201aob103.postini.com ([207.126.154.11]) with SMTP ID DSNKS2rgNVTNAwGoBjVl9fb8Ros1H5tjBmmD@postini.com; Thu, 04 Feb 2010 14:56:53 UTC Received: by bwz21 with SMTP id 21so2012014bwz.24 for ; Thu, 04 Feb 2010 06:56:53 -0800 (PST) MIME-Version: 1.0 Received: by 10.102.161.7 with SMTP id j7mr746201mue.111.1265295413122; Thu, 04 Feb 2010 06:56:53 -0800 (PST) In-Reply-To: <8ea1ff9e1002040620t647d8eafv9014b0d4f840707b@mail.gmail.com> References: <8ea1ff9e1001290826s1bb3ebadt6c1db2e1ee6cfe57@mail.gmail.com> <8ea1ff9e1002010704k7a559208s2e1b9747f51c0ae5@mail.gmail.com> <8ea1ff9e1002040620t647d8eafv9014b0d4f840707b@mail.gmail.com> Date: Thu, 4 Feb 2010 13:56:52 -0100 Message-ID: Subject: Re: Repository migration From: Alexander Klimetschek To: users@jackrabbit.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org On Thu, Feb 4, 2010 at 13:20, Davide Maestroni wrote: > What I want to know is if I can fix a node by just overwriting it. If, for > example, the property of a node becomes mandatory, and a node already exist > without any value set for it, can I just fix it by explicitly (not in the > node type definition) setting a value for the missing property? Yes, this should work fine. Mandatory constraints are checked upon save(). Only property allowed, type and value constraints are checked upon setting the property. AFAIK you should also be able to remove properties that are no longer allowed by the new node type. Regards, Alex -- Alexander Klimetschek alexander.klimetschek@day.com