Return-Path: Delivered-To: apmail-jackrabbit-users-archive@locus.apache.org Received: (qmail 55765 invoked from network); 21 Sep 2007 12:51:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 21 Sep 2007 12:51:30 -0000 Received: (qmail 90532 invoked by uid 500); 21 Sep 2007 12:51:19 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 90511 invoked by uid 500); 21 Sep 2007 12:51:19 -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 90490 invoked by uid 99); 21 Sep 2007 12:51:19 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Sep 2007 05:51:19 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of christophe.lombart@gmail.com designates 209.85.128.187 as permitted sender) Received: from [209.85.128.187] (HELO fk-out-0910.google.com) (209.85.128.187) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Sep 2007 12:51:18 +0000 Received: by fk-out-0910.google.com with SMTP id b27so1011162fka for ; Fri, 21 Sep 2007 05:50:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; bh=6gVqKm2Fa4Y/CmMRYgB/374cd/1Yqude1oZjRbEfwD4=; b=OxMH8kynLNqjs2A7q4Ga8suqFvXBvTniVYjhwh4FNu/6/AqLPmer92WTir7q2UkJLN82W+LA1L2kl/+t44RCGm4LTZZRdBWJUVzAIeMi0jfz9EDonftAqsnA82enpTBvEIzDmh159oT7Xm1+KfOBIkWhtCf+xYk2r8/J/TVV0Y0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=b4VaBehlkx1fJA01Be1WJZ5jnj8ddkBy2bqx5oseHbylncK+IraqM3AnSo6VQVNvUqPRoUw5M7Vi2SKqVT1FePyDOS+uLwP++l/b8OmjCC0dHvuNZQuDk0L9fA5txhiZWXxGREaVa7e/9YYREnj9aqTorTnxF73Btk4v2pTdaeQ= Received: by 10.82.178.11 with SMTP id a11mr727977buf.1190379056767; Fri, 21 Sep 2007 05:50:56 -0700 (PDT) Received: by 10.82.162.9 with HTTP; Fri, 21 Sep 2007 05:50:56 -0700 (PDT) Message-ID: <3b728ee90709210550s72231d1fy25f3e487ab63fc95@mail.gmail.com> Date: Fri, 21 Sep 2007 14:50:56 +0200 From: "Christophe Lombart" To: users@jackrabbit.apache.org Subject: Re: Same name siblings with OCM In-Reply-To: <12817090.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_44495_21144161.1190379056701" References: <12817090.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_44495_21144161.1190379056701 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline On 9/21/07, Kaizer wrote: > > > Hi, > > I'm using OCM and wanted to know how Same name siblings work in this case. It works with collection converters. If you are using specific node types, you have to use the NTCollectionConverterImpl otherwise you have to use the DefaultCollectionImpl. Both converters have almost the same behavior in term of subnode name definition. By default, they use the same name for all subnodes. This is a predefined value like "collection-element". If the class-descriptor matching to the collection elements has an id (see the fieldescriptor definition), the id value is used to build the subnode name. There are some examples in the uni tests. If you have still some problems, you can send us more information about your content model and we will try to make the mapping together. br, Christophe ------=_Part_44495_21144161.1190379056701--