users@jaxb.java.net

Re: [Dealing with id/idref and circularity]

From: Ed Mooney <Ed.Mooney_at_Sun.COM>
Date: Thu, 26 Jan 2006 15:25:00 -0500

Hi Francois,

Which version of JAXB are you using? I'm able to marshal the object I
get by unmarshalling the instance in your message using JAXB 1.0.5.

Regards,

   -- Ed

Francois Le Fevre wrote:
> Dear all,
>
> I have a problem with jaxb 1.x and id/idref and circularity.
>
> for example, i would like to describe a family which is composed from
> parent and children.
> Parents have an idref to their children.
> Child have an idref to their parents.
>
> I have no problem to unmarshall, but i can't marshall.
> Because it seems that jaxb is lost with the fact that a parent contains
> a ref to a child, which contains a ref to it parent....
>
> How can I solve my problem?
> Do I have to add some customization to schema?
>
> I am working on a more complicated schema dealing with protein, gene
> object...
>
> Thanks a lot.
>
> Francois, from Paris, France
>
[ ... ]