Hi Ahmed,

take a look how the dependency between MyOrder and Item is modelled at:

http://castor.codehaus.org/xml-mapping.html#4.-Usage-Pattern

Ralf


Ahmed Elhabashy schrieb:
Dear all,

I'm new with castor technology, I would like to ask about, How to write the mapping file when there exist a dependences on objects

Example:

If I have two classes Address and Person

Public class Address{

String strFirstAddress;

String strSecondAddress;

// Some code

}

Public class Person{

            Address address;

            //Some Code

}

And I want to marshal and unmarshal an object from type Person

Best Regards,

*Ahmed Ragab El-Habashy*

Software Engineer

ICT Department, System Analysis Unit

Bibliotheca Alexandrina

P.O.Box 138, ElShatby

Alexandria, Egypt 21526

Tel: +20 3 483 9999, Ext:1436

Fax: +20 2 482 0405

Email: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>

Web Site: www.bibalex.org <http://www.bibalex.org/>


-------------------------------------------------
If you wish to unsubscribe from this list, please send an empty message to the following address:

[EMAIL PROTECTED]
-------------------------------------------------

Reply via email to