1

I have a schema (.xsd) and on generation using xjc would like to ignore some attributes being generated in the JAXB classes.

I can remove them manually once generated, but every time when schema changes, it is quite a manual task to remove from the generated class. Is there a way to achieve this using the JAXB bindings file or JAXB2 basics plugin ?

ulab
  • 1,079
  • 3
  • 15
  • 45
  • You might add `@Transient` using `jaxb2-basics-annotate` on attribute that you would ignore. – Xstian Apr 08 '16 at 12:48
  • I would like to **completely skip** the attribute on generation to JAXB classes. `@Transient` would add annotation to the attribute right ? I actually do not want them in the output JAXB at all. – ulab Apr 08 '16 at 14:41
  • Yes, it is an annotation on the attribute. – Xstian Apr 08 '16 at 14:43

0 Answers0