remove the "_" from the field name:

so instead of:

<field name="_id" ...>

do:

<field name="id" ...>

The field name is used to create the getter/setters...

--Keith

sayed fadhil wrote:
> 
> I got through the previous problem .. but now I am
> stuck at this ..
> 
> [test2] Loading mapping descriptors from
> file:/home/rednox/fyp/cvscastor/castor/src/examples/invoice/map-org.xml
> [test2] mapping configured
> [test2]
> org.exolab.castor.jdo.DatabaseNotFoundException:
> Nested error:
> org.exolab.castor.mapping.MappingException: The method
> get_id in class org.Invoice accepting/returning object
> of type class java.lang.String was not found
> [test2] org.exolab.castor.mapping.MappingException:
> The method get_id in class org.Invoice
> accepting/returning object of type class
> java.lang.String was not found
> 
> basically at the line
> 
> db = _jdo.getDatabase();
> 
> as I mention before .. what i've been trying to do is
> to import data from a simple xml file to database
> using  classes generated by SourceGenerator. I really
> appreciate any help I can get.
> 
> the schema, mapping file and source code are
> attached.Currently I am only trying to put the data
> only into the invoice table first. But it seems that
> the mapping file has a problem. and I am using the cvs
> version.
> 
> One other thing .. can anybody point me to a working
> example of xml -> database conversion using
> SourceGenerator ? or probably send me the example? ..
> if you don't mind of course. I'd really appreciate it

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to