Hi Carsten,

Your email seems to be missing some information, but it sounds like your 
difficulty is in setting the back link from the DataType subclass 
instance back to the Schema. You've got at least two ways of doing this: 
(1) use an add-method for the collection of DataTypes that go into a 
Schema, then in that method set the link from the DataType instance to 
the Schema, (2) use a post-set method in the DataType mapping to find 
the containing object and set the link (see 
http://jibx.sourceforge.net/tutorial/binding-extend.html#extmeths).

  - Dennis

Dennis M. Sosnoski
SOA, Web Services, and XML
Training and Consulting
http://www.sosnoski.com - http://www.sosnoski.co.nz
Seattle, WA +1-425-296-6194 - Wellington, NZ +64-4-298-6117



Carsten Zerbst wrote:
> Hello, 
>
> I'd like to persist the elements of my Express (Modelling Language like
> CORBA IDL or UML) mapping. I found two problems I could not solve:
>
> 1. I have an abstract class DataType which is inherited e.g by
> DefinedDataType
>
> 2. The Schema class is the container for all DataTypes, but
> all DataTypes have as well a method to get their Schema.
>
> How could I map this into XML using JIBX ? I would prefer to have an XML
> like 
>
> <schema>
>       <definedDataType>
> </schema>
>
> Bye, Carsten  
>
>
>
> _______________________________________________
> jibx-users mailing list
> jibx-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jibx-users
>
>   

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to