users@jaxb.java.net

RE: Generate java classes from XSD using JAXB that extends existing class file

From: Rotem Yakir <rotemy_at_msp-gs.com>
Date: Thu, 28 Jul 2011 15:09:59 +0300

Thank you for your help.

The problem is that I can't add arguments to the plugin that generate the classes.

I notice that there is way to do this with

<xs:complexType name="JAXBRoot">
        <xs:annotation>
            <xs:appinfo>
                <jaxb:class implClass="com.jaxb.JAXBRoot"/>
            </xs:appinfo>
        </xs:annotation>
    </xs:complexType>

But the problem that the class JAXBRoot is being generated in (com.generated.JAXBRoot) although it already exists (com.jaxb.JAXBRoot)

Is there anything I can do about it?

-----Original Message-----
From: aleksei.valikov_at_gmail.com [mailto:aleksei.valikov_at_gmail.com] On Behalf Of Aleksei Valikov
Sent: Thursday, July 28, 2011 14:27
To: users_at_jaxb.java.net
Cc: dev_at_jaxb.java.net; Rotem Yakir
Subject: Re: Generate java classes from XSD using JAXB that extends existing class file

Hi,

> I want that the class DynamicNavigator that will be generated, extends
> the class com.example.MyClass
>
> How can I do it?

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

Please use the users_at_jaxb.java.net mailing list.

Bye,
/lexi