Castor Custom Collection Field Handler

I would like to unmount the following xml in MultiKeyMap :

<map>
    <entry key1="foo" key2="foo">
        <value property="val"/>
    </entry>
    <entry key1="bar" key2="bar">
        <value property="val"/>
    </entry>
</map>

I looked at the Castor API and saw that there was a CollectionFieldHandler class , but I could not find documentation about where I would need to register a custom collection handler.

+3
source share
1 answer

First of all, a collection is not a card.

You can implement and register your own handler. See http://www.castor.org/xml-fieldhandlers.html

+1
source

Source: https://habr.com/ru/post/1780580/


All Articles