You are viewing a plain text version of this content. The canonical link for it is here.
Posted to graffito-dev@incubator.apache.org by "Christophe Lombart (JIRA)" <ji...@apache.org> on 2006/10/18 20:33:37 UTC
[jira] Commented: (GRFT-110) Mapping multiple properties or child
nodes to a single field
[ 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