permaculture playing cards*
The moose likes Web Services and the fly likes JAXB Annotation Maddness, subclass members do not get outputted. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "JAXB Annotation Maddness, subclass members do not get outputted." Watch "JAXB Annotation Maddness, subclass members do not get outputted." New topic
Author

JAXB Annotation Maddness, subclass members do not get outputted.

Warren Bell
Ranch Hand

Joined: Dec 20, 2000
Posts: 56
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
 
wood burning stoves
 
subject: JAXB Annotation Maddness, subclass members do not get outputted.
 
Similar Threads
spring mvc xmlbean object JSON mapping error
instanceof operand
RESTFul web service
JAXB and Axis
how to generate Java Annotations using Apache Axis