I am able to generate the code the way I want it using an xjb file, the code compiles and runs without crashing.
But most of my tests are not passing.
While debugging, I saw that once the patchers are again called in unmarshalContext.endDocument the newly found idrefs are not unmarshaled.
I am dealing with an xsd that basically extends IDREF type in order to reference elements throughout the xml. I did post my problem on stackoverflow but so far no luck: https://stackoverflow.com/questions/45823840/how-to-unmarshal-and-adapt-a-reference-type.
Here is an example of such xsd:
I am able to generate the code the way I want it using an xjb file, the code compiles and runs without crashing. But most of my tests are not passing. While debugging, I saw that once the patchers are again called in
unmarshalContext.endDocument
the newly found idrefs are not unmarshaled.