dev@jaxb.java.net

_at_XmlIDREF

From: Mark Emeny <Mark.Emeny_at_focus-solutions.co.uk>
Date: Wed, 15 Nov 2006 10:44:58 -0000

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.