Removing 'container="false"' didn't really help. What happend is following but the missing attributes didn't show up. This is the new xml file without 'container="false"' and two elements in the HashMap:
- <graphData> <id xsi:type="demos_-f_-entity-start" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" /> - <value> <img /> - <pos> <x>50</x> <y>200</y> </pos> </value> </graphData> - <graphData> <id xsi:type="demos_-f_-entity-start" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" /> - <value> <img /> - <pos> <x>50</x> <y>10</y> </pos> </value> </graphData> And this is the old xml file with 'container="false"' and two elements in the HashMap: - <graphData> - <map-item> <id xsi:type="demos_-f_-entity-start" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" /> - <value> <img /> - <pos> <x>50</x> <y>10</y> </pos> </value> </map-item> - <map-item> <id xsi:type="demos_-f_-entity-start" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" /> - <value> <img /> - <pos> <x>50</x> <y>200</y> </pos> </value> </map-item> </graphData> Any other thoughts? Katja > > I think the problem is coming from the container="false". > > Try removing that and it should work ok. > > --Keith > > > [EMAIL PROTECTED] wrote: > > > > Hello, > > > > I'm un/marshalling a HashMap but not all attributes of the key are getting > > marshalled. Of course I can't unmarshall them either. > > Following is a part of my mapping file. graphicData is the HashMap I'm saving. > > .. > > <field name="graphicData" collection="map" container="false"> > > <bind-xml name="graphData" node="element" > > > <class name="org.exolab.castor.mapping.MapItem"> > > <field name="key" type="java.lang.Object"> > > <bind-xml name="id" node="element" /> > > </field> > > <field name="value" type="GUI.ImageAndPositionData"> > > <bind-xml name="value" type="GUI.ImageAndPositionData" > > node="element"/> > > </field> > > </class> > > </bind-xml> > > </field> > > .. > > <class name="Core.Demos_F_EntityStart"> > > <field name="ObjectkindName" transient="true"/> > > </class> > > > > And this is a part of the xml-file that is marshalled: > > - <graphData> > > - <map-item> > > <id xsi:type="demos_-f_-entity-start" > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" /> > > - <value> > > <img /> > > - <pos> > > <x>50</x> > > <y>10</y> > > </pos> > > </value> > > </map-item> > > .. > > It's right that (here in this example) the first object is of type 'demos_- f_- > > entity-start'. > > My question: How can I save the attributes of the superclass and the > > supersuperclass?? The type of the key-object of the HashMap is the type of the > > supersuperclass. Thus, I thought that these attributes are saved, too. > > Any thoughts on this? > > > > Katja > > > > ----------------------------------------------------------- > > If you wish to unsubscribe from this mailing, send mail to > > [EMAIL PROTECTED] with a subject of: > > unsubscribe castor-dev > > ----------------------------------------------------------- > If you wish to unsubscribe from this mailing, send mail to > [EMAIL PROTECTED] with a subject of: > unsubscribe castor-dev > ----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to [EMAIL PROTECTED] with a subject of: unsubscribe castor-dev
