I am using hypejaxb3, and trying to find the syntax for adding the inheritance. e.g i wants to define the xsd for the relation
class Circle inherits Shape .
I could find the hyperjaxb customization guide at https://wikis.sun.com/display/GlassFish/Hyperjaxb3Reference but couldnt find specific steps for the defining the inheritance.
I am using hypejaxb3, and trying to find the syntax for adding the inheritance.
Share
Just use the XML Schema complex type extension mechanism:
HJ3 will generate Circle which would extend Shape – as well as appropriate JPA mappings, including inheritance annotations.