Sorry Ralf, but I don't understand what you say very well.
I have this mapping for A:
class name="A"
field name="A1" type="string"
bind-xml name="a1"
\field
field name="BObject" type="mypackage.B"
bind-xml name="bObject"
\field
\class
and I have the mapping for B
class name="mypackage.B"
field name="A.A2" <<<<<<<------
field name=....
\class
You say I have to define a field mapping for a2 in A mapping class. But how
can I make to appear a2 as element of B? I have to define something in B's
mapping, isn't it?
Than you for your response
Ralf Joachim wrote:
>
> Hi sweex,
>
> you have to define field mapping for a2 in class mapping of A but with
> location attribute you should be abel to make a2 apear as attribute or
> element of bObject tag.
>
> Regards
> Ralf
>
>
> sweex schrieb:
>> Hi!!
>>
>> I hope you're not boring with me! I have a lot of questions...
>>
>> The most important question I have is this:
>>
>> The A class has 3 attributes:
>>
>> private string a1;
>> private string a2;
>> private B bObject;
>>
>> where B class has string b1 attribute.
>>
>> I want to write a mapping for the A class so as to generate an XML with
>> this
>> structure:
>>
>> class name="A"
>> |
>> -a1
>> |
>> -bObject
>> |
>> - a2 <<------- how can I insert A's attribute in the mapping of B?
>> |
>> - b1
>>
>> I hope someone has understand me. Thanks!!
>>
>> Regards.
>
> --
>
> Syscon Ingenieurbüro für Meß- und Datentechnik GmbH
> Ralf Joachim
> Raiffeisenstraße 11
> 72127 Kusterdingen
> Germany
>
> Tel. +49 7071 3690 52
> Mobil: +49 173 9630135
> Fax +49 7071 3690 98
>
> Internet: www.syscon.eu
> E-Mail: [EMAIL PROTECTED]
>
> Sitz der Gesellschaft: D-72127 Kusterdingen
> Registereintrag: Amtsgericht Stuttgart, HRB 382295
> Geschäftsleitung: Jens Joachim, Ralf Joachim
>
> ---------------------------------------------------------------------
> To unsubscribe from this list please visit:
>
> http://xircles.codehaus.org/manage_email
>
>
>
--
View this message in context:
http://www.nabble.com/A-class%27s-attribute-inside-B-class-in-XML-tf3974727.html#a11283240
Sent from the Castor - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email