Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 92705 invoked from network); 10 Feb 2008 11:04:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Feb 2008 11:04:42 -0000 Received: (qmail 16018 invoked by uid 500); 10 Feb 2008 11:04:34 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 15980 invoked by uid 500); 10 Feb 2008 11:04:34 -0000 Mailing-List: contact dev-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jackrabbit.apache.org Delivered-To: mailing list dev@jackrabbit.apache.org Received: (qmail 15971 invoked by uid 99); 10 Feb 2008 11:04:34 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 10 Feb 2008 03:04:34 -0800 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: local policy) Received: from [206.190.37.70] (HELO web53509.mail.re2.yahoo.com) (206.190.37.70) by apache.org (qpsmtpd/0.29) with SMTP; Sun, 10 Feb 2008 11:04:03 +0000 Received: (qmail 43386 invoked by uid 60001); 10 Feb 2008 11:04:08 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=IISnO95hUX40L0OYEX9TdYsy4+BYwnTbzsJ1zlQ/WEvFaPcfNpORo93Im7UKT1m7NWpZmEFI1jzGwzuCp+81WpuyiMJlQh+4R+mardc9xtWRywgToe18uCguh+aw4rSuYy3huELnMe48PxBgsXThrdXRYaMeSbNmeX4WZp73Hko=; X-YMail-OSG: uTppt60VM1njqxy5e6LMdaCPt9MpglF3msKiwt9qF89xzSNJtjNoT7uugu3oS_7gT5xixkDJgWw77vPGgsTEzwELnAKY_LGJJ.RhexYCQhaKFqudOGDAyECUyWJZ09X2QKe_.fXU7IZhTHw- Received: from [67.159.45.53] by web53509.mail.re2.yahoo.com via HTTP; Sun, 10 Feb 2008 03:04:08 PST Date: Sun, 10 Feb 2008 03:04:08 -0800 (PST) From: vijay makija Subject: Re: Same name siblings To: dev@jackrabbit.apache.org In-Reply-To: <510143ac0802080723h26cc609ekc1825f9172773231@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Message-ID: <835578.43367.qm@web53509.mail.re2.yahoo.com> X-Virus-Checked: Checked by ClamAV on apache.org Hi Jukka , I want to add two properties to single node with same name. But when I try to do so, new property overrides older property. As in example below, on setting message 2nd time first value is overidden. Node hello = root.addNode("hello"); Node world = hello.addNode("world"); world.setProperty("message", "Hello, World!"); world.setProperty("message", "Hello"); Is there anyway I can add both properties? Thanks in advance, Regards, Vijay Makhija --- Jukka Zitting wrote: > Hi, > > Support for same name siblings is troublesome and > currently the best > practice is to avoid them if possible. In many cases > the default > response when we see people having problems with SNS > is to tell them > not to use the feature. > > I think that's lame. We should either treat SNS as a > first-class > feature that we just haven't been able to make work > yet, or explicitly > deprecate it and plan to drop or at least seriously > limit the feature > as far as is permitted by the JCR standard. > > The current status where SNS is kind of supported > but "you should not > use it!" is IMHO not sustainable in the long run. > > WDYT, is SNS worth the effort, or should we consider > dropping it? > > BR, > > Jukka Zitting > ____________________________________________________________________________________ Never miss a thing. Make Yahoo your home page. http://www.yahoo.com/r/hs