|
[Resteasy-developers] subclass properties not marshalled when in a
List
From: <anagnost@co...> - 2010-06-02 14:54
|
Hello,
I noticed that if you return subclasses of a parent class in a list that RestEasy does not marshall any of the subclass-specific properties. But, it will if you return a subclass outside of a List, it will marshall the subclass.
Are there any annotations I can use to direct RestEasy to recognize the subclasses when returned in a list?
Please see the examples below:
// this works
public ParentClass test()
{
return( instance of subclass of ParentClass );
}
// this does not work, it marshalls only the properties of ParentClass
public List<ParentClass> test2()
{
return( ArrayList with subclasses of ParentClass as elements );
}
Thanks
|
| Thread | Author | Date |
|---|---|---|
| [Resteasy-developers] subclass properties not marshalled when in a List | <anagnost@co...> |