Hi,
I tried attaching the data object structure in an xls but looks like it is
not getting attched correctly.
Anyways,
Here is the structure...
Data Object Containing a Map as shown
Map multiValuedAttributeMap
Key Value
ABC List of Maps
Map1 Key Value
attr1 12345678
attr2 2
Map2 Key Value
attr1 23546335
attr2 2
XYZ Map1 Key Value
attr1 Test
Thanks,
Pravin
Werner Guttmann-6 wrote:
>
> Hi,
>
> Could it be that you (coincidently) ommitted information about the data
> object(s) ?
>
> Regards
> Werner
>
> On 07.04.2010 19:45, pravinab wrote:
>>
>> Knidly excuse for the earlier HTML post.
>>
>> Hi,
>> We have a requirement for the following xml structure: Can anyone help on
>> this. Details below
>> <metadata>
>> <parent-item-type name="table1">
>> <parent-item-type name="ABC">
>> <doc-attribute name="attr1" value="12345678" />
>> <doc-attribute name="attr2" value="2" />
>> </parent-item-type>
>> <parent-item-type name="ABC">
>> <doc-attribute name="attr1" value="23546335" />
>> <doc-attribute name="attr2" value="2" />
>> </parent-item-type>
>> <parent-item-type name="ABC">
>> <doc-attribute name="attr1" value="98553668" />
>> <doc-attribute name="attr2" value="4" />
>> </parent-item-type>
>> <parent-item-type name="XYZ">
>> <doc-attribute name="attr1" value="Test" />
>> </parent-item-type>
>> </parent-item-type>
>> </metadata>
>>
>> The data object is in the following format:
>>
>>
>> I was trying out the following mapping, but this is not working as
>> expected.
>> <field name="parentItemTypeListMap" collection="map">
>> <bind-xml name="parent-item-type" node="element"
>> location="parent-item-type-list">
>> class name="org.exolab.castor.mapping.MapItem">
>> <field name="key" type="java.lang.String">
>> <bind-xml name="name" node="attribute" />
>> </field>
>> <field name="value" collection="arraylist" type="java.util.Map">
>> <bind-xml name="doc-attribute" node="element" />
>> <class name="java.util.Map">
>> <description xmlns=""></description>
>> <field name="key" type="java.lang.String">
>> <bind-xml name="name" node="attribute" />
>> </field>
>> <field name="value" type="java.lang.String">
>> <bind-xml name="value" node="attribute" />
>> </field>
>> </class>
>> </field>
>> </class>
>> </bind-xml>
>> </field>
>>
>> http://old.nabble.com/file/p28168430/DataObject.xlsx DataObject.xlsx
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
> http://xircles.codehaus.org/manage_email
>
>
>
>
--
View this message in context:
http://old.nabble.com/Castor-Mapping-for-HashMap-tp28160770p28185690.html
Sent from the Castor - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email