[xstream-user] Apache Commons PredicatedMap Serialization

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[xstream-user] Apache Commons PredicatedMap Serialization

RoshanP

Hey,

 

I am using a PredicatedMap from Apache Commons for my Map field: criteriaElements. Attached is the xml I get back from the serialization.

 

 

I want it to look like the map generated from the MapConverter:

 

 

<criteriaElements >

 

                                    <map>

 

                                                <entry>

 

                                                            <javax.xml.namespace.QName>{urn:espace-object-model:domain}storeDate</javax.xml.namespace.QName>

 

                                                            <common.domain.dto.DateTimeDTO>

 

                                                                        …

 

                                                            </common.domain.dto.DateTimeDTO>

 

                                                </entry>

 

                                                <entry>

 

                                                            <javax.xml.namespace.QName>{urn:espace-object-model:domain}AssociatesRelationshipType</javax.xml.namespace.QName>

 

                                                            <common.domain.dto.GeographicDTO>

 

 

 

                                                            </common.domain.dto.GeographicDTO>

 

                                                </entry>

 

                                    </map>

 

            </criteriaElements>

 

 

 

Any ideas? I couldn’t figure out a good way to create a Converter that extends MapConverter because then I would have to send in a Mapper into the Constructor. Is there a better way?

 

p.s. I tried to send the xml in this message also, but I kept getting a “Message larger than 30000 bytes” from the Daemon.

 

Roshan Punnoose

Phone: 301-497-6039

 


predicateMessage.txt (4K) Download Attachment