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

Reply via email to