Skip to main content

cannot find IDResolver even in a nightly build-is JAXB-ID-IDREF compliant?

2 replies [Last post]
rumpi
Offline
Joined: 2005-12-14

Hi,

I find it in the source but not in the jars in the lib-ordner. Is it possible to run the example given in the XmlIDREF-doc? Its not running by me. I dont mean the errors in the xmlschema, but much more this kind of mapping, without having to generate an extra class for each IDREF (like in the example from Kohsuke which needs IDResolver) ? For example

empl1
empl2

Alice

Bob

class Firm{
List customer;
List order;
}
class Order{
@XmlIDREF
@XmlElementRef(name="Customer")
List customer;
}
class Customer{
@XmlID
int id;
String name;
}

I have already lost many days exploring jaxb, but I dont see any light for jaxb and my project if I cannot even make a simple referencing (I gave up with HashMap).

Thanks in advance

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
rumpi
Offline
Joined: 2005-12-14

I have found it in the jaxb-impl.jar for those who are still searching, I will write here another message to inform the interested if it helps at all for the ID-IDREF-resolution (without redundant classes)

rumpi
Offline
Joined: 2005-12-14

Do not follow the examples in the Doc for XmlIDREF, they are all false!!! False schema, structure and everything. I couldnt even get the resolve method of IDResolver be called by unmarshalling, so better follow the example of Kohsuke where an extra class for the reference is needed. GREAT WORK Sekhar Vajjhala. Misleading people is a great strategy!!!