Forums Register Login

JAXB Annotation Maddness, subclass members do not get outputted.

+Pie Number of slices to send: Send
I want to do this

public List<? extends Foo> getFoos()
{
...
}

and get the json output for members of Foo and any members of subclasses of Foo. What JAXB annotations do I use in Foo and it's subclasses. All I have managed to be able to do is get the members of Foo as json. I have not been able to get any members of Foo's subclasses.

Thanks,

Warren Bell
You will always be treated with dignity. Now, strip naked, get on the probulator and hold this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1042 times.
Similar Threads
RESTFul web service
instanceof operand
spring mvc xmlbean object JSON mapping error
JAXB and Axis
how to generate Java Annotations using Apache Axis
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 09:01:57.