Nobody knows?

-----Mensaje original-----
De: Ivan Vitoria Sanchez [mailto:[email protected]] 
Enviado el: miércoles, 01 de diciembre de 2010 9:42
Para: [email protected]
Asunto: RE: XmlID & XmlIDREF

Sorry, CXF 2.3.0 and JAXBDataBinding

Ivan Vitoria Sanchez

Districte 22@ - Complexe Ecourban - Edifici Blau
C / Almogàvers 119-123, 3º 4ª - 08018 Barcelona
Tel. 93 452 02 65 Fax. 93 451 35 42



-----Mensaje original-----
De: Benson Margulies [mailto:[email protected]] 
Enviado el: martes, 30 de noviembre de 2010 17:15
Para: [email protected]
Asunto: Re: XmlID & XmlIDREF

What version of CXF? What data binding?

On Tue, Nov 30, 2010 at 10:24 AM, Ivan Vitoria Sanchez
<[email protected]> wrote:
> Hello,
>
>
>
> I have some parent/child associations (one-to-one and many-to-one) between
> my beans. To avoid cyclic references, i'm annotating these beans with @XmlID
> and @XmlIDREF. Sometimes the bean is marshalled as follows:
>
>
>
> <child>
>
>     <id>2</id>
>
>     <parent>1</parent>
>
> </child>
>
>
>
> But other times my output is:
>
>
>
> <child>
>
>     <id>2</id>
>
>     <parent><id>1</id></parent>
>
> </child>
>
>
>
> Do you know why this is happening?
>
>
>
> Thanks,
>
>
>
> Ivan
>
>

Reply via email to