Paul Reiners
Paul Reiners

Reputation: 7894

Specifying Super Class of a JAXB-Generated Class

For JAXB-generated classes, is it possible to specify that they extend a particular class or can they only extend Object?

Upvotes: 0

Views: 1794

Answers (1)

korifey
korifey

Reputation: 3509

Sure you can with JAXB external binding.

You can read more here http://docs.oracle.com/cd/E17802_01/webservices/webservices/docs/2.0/jaxb/vendorCustomizations.html

Special tag you need is <xjc:superClass>

Upvotes: 2

Related Questions