| Article: |
XML Data Binding with Castor | |
| Subject: | How to get Address Books from XML file using mapping file | |
| Date: | 2003-12-01 02:01:11 | |
| From: | thong39th | |
|
I run ViewAddressBook class that I get from this article. But I get a message likes following:
|
||
Showing messages 1 through 5 of 5.
-
How to get Address Books from XML file using mapping file
2004-03-11 13:19:03 starlightpurple [View]
-
How to get Address Books from XML file using mapping file
2007-12-07 01:15:56 AACR [View]
Thank you, tip's was very helpful for me.
-
How to get Address Books from XML file using mapping file
2003-12-12 06:00:21 anonymous2 [View]
i want to know also
-
How to get Address Books from XML file using mapping file
2003-12-12 06:00:11 anonymous2 [View]
i want to no also
-
How to get Address Books from XML file using mapping file
2003-12-01 18:43:24 anonymous2 [View]
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.