From graffito-dev-return-1462-apmail-incubator-graffito-dev-archive=www.apache.org@incubator.apache.org Wed Oct 18 20:34:31 2006 Return-Path: Delivered-To: apmail-incubator-graffito-dev-archive@www.apache.org Received: (qmail 11732 invoked from network); 18 Oct 2006 20:34:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 18 Oct 2006 20:34:31 -0000 Received: (qmail 73173 invoked by uid 500); 18 Oct 2006 20:34:31 -0000 Mailing-List: contact graffito-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: graffito-dev@incubator.apache.org Delivered-To: mailing list graffito-dev@incubator.apache.org Received: (qmail 73162 invoked by uid 99); 18 Oct 2006 20:34:31 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Oct 2006 13:34:31 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Oct 2006 13:34:30 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 681DA714315 for ; Wed, 18 Oct 2006 13:33:37 -0700 (PDT) Message-ID: <23561521.1161203617423.JavaMail.jira@brutus> Date: Wed, 18 Oct 2006 13:33:37 -0700 (PDT) From: "Christophe Lombart (JIRA)" To: graffito-dev@incubator.apache.org Subject: [jira] Commented: (GRFT-110) Mapping multiple properties or child nodes to a single field In-Reply-To: <1347181.1161085539314.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/GRFT-110?page=comments#action_12443354 ] Christophe Lombart commented on GRFT-110: ----------------------------------------- I added those new collection converters. Do you have some unit tests ? Thanks > Mapping multiple properties or child nodes to a single field > ------------------------------------------------------------ > > Key: GRFT-110 > URL: http://issues.apache.org/jira/browse/GRFT-110 > Project: Graffito > Issue Type: New Feature > Components: JCR-Mapping > Reporter: Felix Meschberger > Assigned To: Christophe Lombart > Attachments: GRFT-110.zip > > > While working on our project, I encountered the need to map multiple properties (or child nodes) to a single field. I think, such a mapping can be implemented using a CollectionDescriptor whose name is a pattern suitable for the Node.getProperties(String pattern) and Node.getNodes(String pattern), resp. Of course, best would be to base such an implementing on a Map type field. > Hence I implemented a ResidualPropertiesCollectionConverterImpl mapping multiple properties and a ResidualNodesCollectionConverterImpl mapping multiple child nodes as well as ManagedHashMap to support both classes. > I could imagine, that such functionality could be of use for others, too. Therefore I am willing to give them to the project. Attached, you will find the three classes. NB: Currently the classes are in our own package, which would of course should be fixed when integrating with the JCR-Mapping project. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira