java - generating inheritance mapping using the hypejaxb -
java - generating inheritance mapping using the hypejaxb -
i using hypejaxb3, , trying find syntax adding inheritance. e.g wants define xsd relation class circle inherits shape . find hyperjaxb customization guide @ https://wikis.sun.com/display/glassfish/hyperjaxb3reference couldnt find specific steps defining inheritance.
just utilize xml schema complex type extension mechanism:
<xsd:complextype name="shape"> <xsd:sequence> ... </xsd:sequence> </xsd:complextype> <xsd:complextype name="cicrle"> <xsd:complexcontent> <xsd:extension base="geometry:shape"> <xsd:sequence> <xsd:element name="radius" type="double"/> </xsd:sequence> </xsd:extension> </xsd:complexcontent> </xsd:complextype>
hj3 generate circle extend shape - appropriate jpa mappings, including inheritance annotations.
java hyperjaxb
Comments
Post a Comment