Hello Christophe,

actually I don't really care how the Map is converted to a JCR structure. 
Subnode is fine by me. I just saw that JCROM could somehow map the contents of 
map to individual properties of a node.

So from the OCM test cases I see that I need to implement the following:

class MyHashMapElement extends HashMap implements ManageableCollection {}

Correct? Do I really need to do this? And then I can use the 
DefaultCollectionConvertImpl to map this element, right?

Thanks for your help!
Leander



> -----Ursprüngliche Nachricht-----
> Von: Christophe Lombart [mailto:[EMAIL PROTECTED]
> Gesendet: Mittwoch, 9. Juli 2008 19:13
> An: [email protected]
> Betreff: Re: OCM support for java.util.Map fields?
>
> Hi Leander,
>
> Map is not supported for the properties. only for subnodes. It should
> be
> possible to implement a new CollectionConverter for doing it.
> I will check if there is a jira issue for this features.
>
>
> Christophe
>
>
> On Wed, Jul 9, 2008 at 3:17 PM, Mario-Leander Reimer <
> [EMAIL PROTECTED]> wrote:
>
> > Hi,
> >
> > does anybody know a way to map the contents of a java.util.Map bean
> field
> > using OCM? Haven't found a suitable converter for it. Has anyone done
> this
> > yet?
> > What I would need is a mapping of the key=value pairs, to "dynamic"
> node
> > properties with the corresponding value.
> >
> > Best regards,
> > Leander
> >

Reply via email to