Skip to main content

inheritence in classes generated from schema

2 replies [Last post]
richunger
Offline
Joined: 2004-12-06
Points: 0

I'm having difficulty moving from 1.0 to 2.0. Using jaxb 1.0, I have a schema construct like:

..and when I generate the interfaces, I get a GotoType interface which extends TermintationType. When I generate classes with jaxb 2.0, I just get a GotoType class, which does not extend/implement any kind of Termination construct.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
sekhar
Offline
Joined: 2003-06-25
Points: 0

My RI build generated a Goto class that extended Termination class.
--------------------------------
@XmlAccessorType(AccessType.FIELD)
@XmlType(name = "")
@XmlRootElement(name = "goto")
public class Goto extends Termination
{ ... }

----------------------------------

Which version of the RI are you using ?

kohsuke
Offline
Joined: 2003-06-09
Points: 0

run

$ java -jar jaxb-xjc.jar -version

to check the version.