users@jaxb.java.net

Re: jxc : Inheritance for only one classe?

From: Aleksei Valikov <valikov_at_gmx.net>
Date: Thu, 14 Oct 2010 16:41:49 +0200

Hi,

> I have to generate some classes from a XSD file.
>
> I would like to knwo if it is possible to generate a class with a
> specific super class?
>
> I'va found the tag <xjc:superClass name="mySuperClass"/>, but it seems
> to work only in a <jxb:globalBindings>, and apply it for all the
> classes!
> I've tried to add the superClass tag in a "jxb:bindings
> node="//xs:elemment[@name='mynode']" with any results :/
>
> I use 2.2.1 version of jaxb-api and 0.7.4 version of maven-jaxb2-plugin.

Use the following plugin:

http://confluence.highsource.org/display/J2B/Inheritance+plugin

Bye.
/lexi