users@jaxb.java.net

[understanding] JAXB generated sources structure

From: Rockz <trash_poubelle_at_yahoo.fr>
Date: Mon, 12 Mar 2007 02:24:27 -0700 (PDT)

Hello,

I generated nearly 2.0 MB Java classes from 2 XML schemas with JAXB2.
With HyperJAXB2, I automatically created an Hibernate binding file.
So now, from a XML file, I can create associated Java object, and store it
in an HSQLDB database.
So this JAXB application is not Java-driven, but Schema-driven.

Now I want to create an XML file, and the associated database recording,
from a Java object that I would
create on my own.
The problem is that I can't understand the Java architecture/structure
generated by XJC : when I observe code generated for my root object, I don't
see any method that would permit to link this root-object to sub-objects. I
just have some setters methods available for ComplexTypes.
So, I'd like to know how JAXB's unmarshaller is doing the work when
converting from an XML file to a Java set of objects. Finally, can you point
me to some information or quickly explain me how JAXB Java Objects can be
linked together ?

Thanks in advance.

-- 
View this message in context: http://www.nabble.com/-understanding--JAXB-generated-sources-structure-tf3388109.html#a9430974
Sent from the java.net - jaxb users mailing list archive at Nabble.com.