[
https://issues.apache.org/jira/browse/JCR-1645?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12633751#action_12633751
]
Christophe Lombart commented on JCR-1645:
-----------------------------------------
I'm agree with you but I don't see another solution based on a multi value
property.
Another solution is to use subnodes instead of a multivalue prop. Those
subnodes can match to each element in the map. in each subnode, we can have a
prop for the key (or use the subnode name) and another property for the
reference value
It is also a bit of hack due to the fact that is not possible to store a map of
prop in a JCR node.
> Add support for Map of referenced beans
> ---------------------------------------
>
> Key: JCR-1645
> URL: https://issues.apache.org/jira/browse/JCR-1645
> Project: Jackrabbit
> Issue Type: New Feature
> Components: jackrabbit-ocm
> Reporter: Vincent Giguère
> Assignee: Christophe Lombart
> Fix For: 1.5
>
> Attachments: BeanReferenceMapConverterImpl.java,
> BeanReferenceMapConverterImplTest.java, MapReferenceValueEncoder.java,
> MapReferenceValueEncoderTest.java
>
>
> OCM should support the mapping of maps of referenced beans.
> @Collection(collectionConverter= BeanReferenceCollectionConverterImpl.class)
> private java.util.Map<String, ReferencedBean> aMap;
> BeanReferenceCollectionConverterImpl (mainly the method doGetCollection)
> needs to be updated to support the interface ManageableMap interface.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.