Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Hyperjaxb を使用して、XML スキーマから JPA アノテーションを持ついくつかのクラスを生成します。特定のスキーマ xjc からどの要素を生成するかを指定したいと思います。xsd ファイルを変更できません。bindings.xjb のみを変更できます。hj:ignored を使用しようとしましたが、成功しませんでした。
さて、hj:ignored答えです。Hyperjaxb に特定のクラスを無視させることができます。
hj:ignored
次に例を示します。
<jaxb:bindings node="xsd:complexType[@name='issue121Type']//xsd:element[@name='simpleCollection']"> <hj:ignored/> </jaxb:bindings>
カスタマイズは、スキーマでもxjbファイルでも機能します。
xjb
たとえば、このプロジェクトを参照してください。
「成功せずに」はどのように現れますか?