2012-01-18 1 views

답변

2

은 그냥 XML Schema 복합 형 확장 메커니즘을 사용

<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는 모양 확장 할 것이다 서클을 생성합니다 -뿐만 아니라 상속 주석을 포함한 적절한 JPA 매핑을.

+0

거의 모든 hyperjaxb 질문에 답을하고 2 ~ 3 년 전에 활동이 멈췄습니다. hyperjaxb가 아직 개발/유지되고 있습니까? 비슷한 질문이 있는데, hyperjaxb가 더 이상 지원되지 않기 때문에 문제가 다운로드에 작동 코드가 포함되어 있지 않은지 궁금합니다. 내 질문에 기꺼이 도와 줄 수 있니? 링크는 다음과 같습니다. http://stackoverflow.com/questions/25676731/hyperjaxb3-not-generating-files – CodeMed