users@jaxb.java.net

JAXB Unmarshalling and XmlIDREF using different stores

From: Florian Thiel <flo.thiel+javanet_at_googlemail.com>
Date: Thu, 29 Nov 2007 16:13:09 -0500

Hi!

We're using JAXB 2.1 to marshal/unmarshal Java objects to an XML
database and to different files. Some objects contain XmlIDREFs to
objects stored in another file. On unmarshalling one of these objects
the referencing attribute is set to "null" because JAXB cannot resolve
the reference. Is there a way around this? We store IDs and fill the
referenced objects manually as an ugly workaround. Do all the elements
referencing each other have to be in the same document for JAXB to
work? There does not seem to be a callback mechanism to resolve the
references on misses.

Does the non-goal "traversal of JavaBean object graphs" mean this will not work?

thanks in advance,
Florian