4

In JaxB, we need to move from one schema form to another and we would love to be able to deprecated stuff in the xsd with some simple note in the xsd:documentation element or something. Is there a way to get JAXB to mark these generated classes and methods with @Deprecated so developers can easily see which cold still needs to change?

thanks, Dean

Dean Hiller
  • 19,235
  • 25
  • 129
  • 212

2 Answers2

1

I would recommend the Annotate plugin: Annotate plugin(edit: the original link is no longer valid).

You'll see a couple of examples, including deprecation, warning suppression, etc.

It is usually recommended to do this stuff using special markup under appinfo as opposed to documentation.

Petru Gardea
  • 21,373
  • 2
  • 50
  • 62
  • hmmm, I am getting errors when using that in the xjb file :( :(. It could add the @XmlRootElement which would be soooo sweeeeet. – Dean Hiller May 12 '12 at 15:39
  • @Petru Gardea The link points to a site that looks like a virus/scamware/spamware site. – GC_ Jun 06 '20 at 18:57
  • @GC_, thank you. I've replaced the original link with the web archive one and added the GitHub repo instead. – Petru Gardea Jun 07 '20 at 19:56
1

I finally got all of mine working quite nicely...thanks!!!! The complete code is found here

JAXB External Custom Binding XJC Issue - Parsing results in empty node

Community
  • 1
  • 1
Dean Hiller
  • 19,235
  • 25
  • 129
  • 212