I need to create a series of Java objects via XML using JAXB, which extend a common base class that has already been created (without using JAXB). For example, suppose I have the following JAXB classes that I am trying to create:
Penguin.xml -> Penguin.java Robin.xml -> Robin.java Cardinal.xml -> Cardinal.java
I already have a base class called Bird.java , which I want the three classes to extend above.
What is the best way to do this?
Thanks for your help!
source share