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

Popular posts from this blog

How do I check if an insert was successful with MySQLdb in Python? -

delphi - blogger via idHTTP : error 400 bad request -

postgresql - ERROR: operator is not unique: unknown + unknown -