Hi All,
 
I am new to Castor and having problems with defining the correct mapping of map collection. The LoadMapping method return:
" unable to find FieldDescriptor for 'class' in ClassDescriptor of bind-xml".
 
My mapping file looks like:
....
        <field name="profileMap" collection="map" type="com.bmc.idm.ctsa.licensemanager.dto.ApplicationLicense" >
           <bind-xml node="element" location="Applications" name="Application">
               <class name="org.exolab.castor.mapping.MapItem">
                  <field name="key" type="java.lang.String">
                    <bind-xml name="name"/>
                  </field>
                  <field name="value" type="com.bmc.idm.ctsa.licensemanager.dto.ApplicationLicense"/>
               </class>
          </bind-xml>
        </field>
.....
 
where profileMap is a map with string key and class value. The class value is defined in com.bmc.idm.ctsa.licensemanager.dto.ApplicationLicense.
 
The definition of the map in the xml file was taken from some example I found on the web.
 
Many thanks for the help,
 

Avi Wiesenfeld, CISSP
[EMAIL PROTECTED]

Reply via email to