Return-Path: Delivered-To: apmail-jackrabbit-users-archive@locus.apache.org Received: (qmail 89609 invoked from network); 5 Feb 2007 11:05:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Feb 2007 11:05:32 -0000 Received: (qmail 58931 invoked by uid 500); 5 Feb 2007 11:05:38 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 58917 invoked by uid 500); 5 Feb 2007 11:05:38 -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 58908 invoked by uid 99); 5 Feb 2007 11:05:38 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Feb 2007 03:05:38 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of tobias.strasser@gmail.com designates 64.233.182.186 as permitted sender) Received: from [64.233.182.186] (HELO nf-out-0910.google.com) (64.233.182.186) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Feb 2007 03:05:28 -0800 Received: by nf-out-0910.google.com with SMTP id x4so2098203nfb for ; Mon, 05 Feb 2007 03:05:06 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:reply-to:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=VDBVKJMHcZpKC7EbZUaz/IqqbreezqhLXYZ+cKNR2ldD6OGKzELv/8XGwPG3TEv6/gi+wRRvjJbKcDOWZqfBAzpy7z+WGT6QSNCQ7PUM7XjjfkUjffqRmST33Vc8oKDedTholPm9Le9pJmBvIKkxkle5Aj7M3zRPSpmu4btsi4k= Received: by 10.82.179.9 with SMTP id b9mr1942625buf.1170673506451; Mon, 05 Feb 2007 03:05:06 -0800 (PST) Received: by 10.82.136.8 with HTTP; Mon, 5 Feb 2007 03:05:06 -0800 (PST) Message-ID: <8be731880702050305k63524bddk8ff967536017460e@mail.gmail.com> Date: Mon, 5 Feb 2007 12:05:06 +0100 From: "Tobias Bocanegra" Reply-To: tobias.bocanegra@day.com Sender: tobias.strasser@gmail.com To: "Sridhar Raman" Subject: Re: Same-name siblings problem Cc: users@jackrabbit.apache.org In-Reply-To: <227621ad0702050250g5a02ea99y966e2b418382a6bb@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <227621ad0702020201g481d50cdg72c92341eb2982d0@mail.gmail.com> <227621ad0702040159v54b812dk6be05d23cefb2d01@mail.gmail.com> <8be731880702040845v3a22dc6bne3a9c2c6c7a10ee7@mail.gmail.com> <227621ad0702042045i2ff3f357sc521726791a30417@mail.gmail.com> <8be731880702050038qe718113kf58a767ee159de96@mail.gmail.com> <227621ad0702050250g5a02ea99y966e2b418382a6bb@mail.gmail.com> X-Google-Sender-Auth: 82f0b526644b61af X-Virus-Checked: Checked by ClamAV on apache.org use a wildcard as name [tx:ValuesType] > nt:base,mix:referenceable,mix:versionable,tx:Trackable - tx:id (long) - tx:qtext + * (tx:ValueType) = tx:ValueType multiple version regards, toby On 2/5/07, Sridhar Raman wrote: > Ok, I have decided to go ahead and give the value nodes the name of the > letter. But when I try adding them that way, I get a "Adding A-B Value node: > javax.jcr.nodetype.ConstraintViolationException: no > definition found in parent node's node type for new node: no matching child > node definition found for {}A-B: no matching child node definition found for > {}A-B" exception. > > I knew that I would get this error, as I don't define any node by the name > A-B in my node type definition. But how do I do this? > > This is my current node definition of the Values node. > > [tx:ValuesType] > > nt:base,mix:referenceable,mix:versionable,tx:Trackable > - tx:id (long) > - tx:qtext > + tx:value (tx:ValueType) > = tx:ValueType > multiple version > > The name tx:value is what I am using. I can think of two possible solutions: > 1) To make ValuesType as unstructured: > In which case I would be able to add children as I wish. I am not too keen > on doing this. > > 2) Define a child node without its name: > I hope this is possible. If yes, how do I do it? I have no clue. > > > On 2/5/07, Tobias Bocanegra wrote: > > hi, > > > > > I am sorry ... I didn't understand your question regarding the test > case. > > write some code that reproduces the problem and create a jira issue. > > > > > I have 13 VALUE nodes which are like buckets. And into these buckets, I > > > would be adding new VALUE nodes dynamically. eg. If the buckets were > [A-D], > > > [E-H], and so on. I would look at the new value, find out its first > letter > > > and create a VALUE node for it which would be added into the appropriate > > > bucket. > > so, why don't you give the value nodes the name of the letter? > > > > regards ,toby > > -- > > -----------------------------------------< > 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 >--- > > > > -- -----------------------------------------< 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 >---