Hi,
I have one class
ClassA
ClassA{
private
int Id;
private LinkedHashMap dimMap;
private LinkedList dimList;
public
int getId
()
{
return axisId;
}
public LinkedList getDimList
()
{
return dimensionList;
}
public LinkedHashMap getDimMap
()
{
return dimensionMap;
}
}
My mapping file is as
follows
<mapping>
<class name="ClassA
<map-to xml="container"/>
<field name="
Id "
type="integer">
<bind-xml name="
Id " node="attribute"
/>
</field>
<field name="
dimMap " type="classB " collection=”lMap
”>
<bind-xml
name=
“dimMap " node="attribute"
/>
</field>
<field name=
“dimList " type=" classC " collection=”lis
”>
<bind-xml
name="
dimList " node="attribute"
/>
</field>
</class>
</mapping>
I am getting
error
unable
to add attribute "collection" to 'org.exolab.castor.mapping.xml.FieldMapping'
due to the following error: java.lang.IllegalStateException:
java.lang.IllegalArgumentException: 'LinkedList' is not a valid
CollectionType
Alok
Kumar