Alok,
 
can you please raise a feature request at http://jira.codehaus.org/browse/CASTOR for this to be added.
 
Thanks
Werner


From: Alok Kumar(RPM) [mailto:[EMAIL PROTECTED]
Sent: Freitag, 23. Dezember 2005 13:51
To: [email protected]
Subject: [castor-user] How to define java.util.LinkedList

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

 

Reply via email to