Article:
 |
|
XML Data Binding with Castor
|
| Subject: |
|
How to get Address Books from XML file using mapping file |
| Date: |
|
2004-03-11 13:19:03 |
| From: |
|
starlightpurple
|
Response to: How to get Address Books from XML file using mapping file
|
|
Hi,
Is your Person class in a package? If so you will need to modify the mapping.xml file to include the package name before the class name. For example if you put the Person class in a package called MyPackage you would make the following changes to the mapping.xml file:
* change <class name="Person"> to:
<class name="MyPackage.Person">
* change <field name="persons" type="Person" collection="collection" /> to:
<field name="persons" type="MyPackage.Person" collection="collection" />
Hope this helps.
|
Showing messages 1 through 1 of 1.
-
How to get Address Books from XML file using mapping file
2007-12-07 01:15:56
AACR
[View]