users@jaxb.java.net

Re: jaxb inheritance question

From: Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_Sun.COM>
Date: Wed, 17 Mar 2004 09:54:30 -0800

> Sorry when I wasn't clear enough about my problem.
>
> What I really want is that XJC generates classes which
> are derived from the same class also generated by XJC.
> Also I would like to use these classes together to
> marshal/unmarshal.

To some extent, JAXB can map inheritance in your schema to inheritance
in Java. You can see that in action in many of the samples (see po.xsd
for example)

Does what you are trying to do go beyond this? If so, how?

Let's focus on this compilation aspect first. I think the runtime issue
is probably a different problem.

regards,
--
Kohsuke Kawaguchi
Sun Microsystems                   kohsuke.kawaguchi_at_sun.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
For additional commands, e-mail: users-help_at_jaxb.dev.java.net