users@jaxb.java.net

Re: Creating XML files from relational data

From: Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_Sun.COM>
Date: Mon, 23 Jun 2003 13:27:20 -0700

> I guess you just need to read the data from the SQL statements, populate
> the object and marshal them.

Yes. And to populate objects you need to create them, and that's when
you need to call ObjectFactory methods.

    ObjectFactory of = new ObjectFactory();
    Foo foo = of.createFoo();
    foo.setProperty1(abc);
    foo.setProperty2(def);
    ...


--
Kohsuke Kawaguchi <kohsuke.kawaguchi_at_sun.com>