I use Java Jersey 1.x to sort an object with multiple members, one of which is a list. All member variables are correctly sorted and returned with the correct return type. However, it does not include objectList in the returned data.
Example:
@XmlRootElement public class ClassWithList { private String front; private int total; private ArrayList<AnotherPOJOObject> objectList; ... getters/setters
Getter:
public List<AnotherPOJOObject> getObjectList() { return objectList; }
I debugged it and verified that the objectList is indeed populated with data. AnotherPOJOObject also annotated as XmlRootElement
source share