Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 15620 invoked from network); 10 Feb 2008 13:22:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Feb 2008 13:22:19 -0000 Received: (qmail 69525 invoked by uid 500); 10 Feb 2008 13:22:11 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 69492 invoked by uid 500); 10 Feb 2008 13:22:11 -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 69478 invoked by uid 99); 10 Feb 2008 13:22:11 -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 05:22:11 -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: domain of tripod@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; Sun, 10 Feb 2008 13:21:39 +0000 Received: by goobak01.day.com (Postfix, from userid 1212) id 712C3508C3; Sun, 10 Feb 2008 14:12:11 +0100 (CET) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.183]) by goobak01.day.com (Postfix) with ESMTP id 5C03750874 for ; Sun, 10 Feb 2008 12:04:31 +0100 (CET) Received: by wa-out-1112.google.com with SMTP id m38so1741555waf.5 for ; Sun, 10 Feb 2008 03:14:02 -0800 (PST) Received: by 10.114.59.1 with SMTP id h1mr8648208waa.39.1202642042138; Sun, 10 Feb 2008 03:14:02 -0800 (PST) Received: by 10.114.255.14 with HTTP; Sun, 10 Feb 2008 03:14:02 -0800 (PST) Message-ID: Date: Sun, 10 Feb 2008 12:14:02 +0100 From: "Tobias Bocanegra" Sender: tripod@day.com To: dev@jackrabbit.apache.org Subject: Re: Same name siblings In-Reply-To: <835578.43367.qm@web53509.mail.re2.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <510143ac0802080723h26cc609ekc1825f9172773231@mail.gmail.com> <835578.43367.qm@web53509.mail.re2.yahoo.com> X-Google-Sender-Auth: 54c8c710ec280038 X-Virus-Checked: Checked by ClamAV on apache.org in this case you need a multivalue property. eg: world.setProperty("message", new String[]{"Hello, World!", "Hello"}); On 2/10/08, vijay makija wrote: > 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 > -- -----------------------------------------< tobias.bocanegra@day.com >--- Tobias Bocanegra, Day Management AG, Barfuesserplatz 6, CH - 4001 Basel T +41 61 226 98 98, F +41 61 226 98 97 -----------------------------------------------< http://www.day.com >---