users@jaxb.java.net

Re: JAXB, XML Schema, and Inheritance

From: Aleksei Valikov <valikov_at_gmx.net>
Date: Fri, 28 Sep 2007 23:59:28 +0200

Hi.

> I read Kohsuke's "missive" on why inheritance is bad in XML schema's,
> but this was written in 2001 so I wonder if, given the advancement of
> JAXB, it should be reconsidered.

It should be.
I also use complex types derived by extension in schemas, they map
quite well onto Java class hierarchies.
Derivation by restriction does not fit well, that's true, but quite a
lot of schema constructs are quite allright.
So don't be afraid, feel free to use type extensions. They work quite well.


Bye.
/lexi