I believe I answered this in the users list (just for so the others
know.) This belongs to the users list, so let's keep the discussion there.
Mark Emeny wrote:
> Hi,
>
>
>
>
> I have the following field:
>
>
>
> @XmlIDREF
>
> @XmlElement(name = "OwnedItem")
>
> private Set<OwnedItem> ownedItems;
>
>
>
> and I'm expecting an element named "OwnedItem" with a type of xs:IDREF.
> Instead, the IDREF annotation is ignored and I am left with a simple
> element named OwnedItem.
>
>
>
> The documentation says these two annotations are compatible. I can only
> get it working the way I want if I omit the XmlElement annotation.
>
>
>
> Any ideas?
>
>
>
> Many thanks,
>
>
>
> Mark Emeny.
>
>
--
Kohsuke Kawaguchi
Sun Microsystems kohsuke.kawaguchi_at_sun.com