type-name define an abstract type name to reference in the map-as attribute of 
a structure.
For this the type-name attribute is only usefull (and allowed) in an abstract 
mapping. 
(see: http://jibx.sourceforge.net/details/mapping-element.html)

Mit freundlichen Grüßen

Frank Häfemeier
Senior IT-Consultant

LogicaCMG GmbH & Co KG

Main Airport Center (MAC)
Unterschweinstiege 10, 60549 Frankfurt
Tel: +49-69-26499-0
mailto:[EMAIL PROTECTED]

Am Sandtorkai 72, 20457 Hamburg
Handelsregister AG Hamburg HRA 96547
persönlich haftender Gesellschafter:
LogicaCMG Verwaltungs GmbH
Handelsregister AG Hamburg HRB 82051
Geschäftsführer: Torsten Strass (Vors.) / Serge Dubrana / Thomas Elsner / 
Andreas Manganaro
 
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Max Spring
Sent: Montag, 18. Juni 2007 17:57
To: JiBX users
Subject: Re: [jibx-users] Binding for Typed Arrays

Hi Frank,

thanks for your suggestion.  It encouraged me to get it finally to work with 
this mapping:

    <mapping name="aContainee"
             class="AContainee" ordered="false">
        <value name="id" field="id" usage="optional"/>
        <value name="aContainer" field="aContainer" usage="optional"/>
    </mapping>

    <mapping abstract="true"
             type-name="tns:AContainer"
             class="AContainer" ordered="false">
        <value name="name" field="name" usage="optional"/>
        <collection name="aContainees" field="aContainees" 
item-type="AContainee"/>
    </mapping>
   
The key seems to be to use "name" instead of "type-name" in the Containee 
mapping. I do not yet fully understand the difference, but I'll figure it out
:-)

Regards,
-Max

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE 
version of DB2 express and take control of your XML. No limits. Just data. 
Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users


This e-mail and any attachment is for authorised use by the intended 
recipient(s) only. It may contain proprietary material, confidential 
information and/or be subject to legal privilege. It should not be copied, 
disclosed to, retained or used by, any other party. If you are not an intended 
recipient then please promptly delete this e-mail and any attachment and all 
copies and inform the sender. Thank you.

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to