|
From: f c. <fil...@gm...> - 2011-02-15 22:23:06
|
Hi !
i´m using resteasy to generate json to integrate the backend with the ui;
now my problem is that one of the objects has a list; and when the list is
empty the json data is not generated for that data;
example:
@XmlRootElement(name = "CWebAssetsFilters")
@XmlAccessorType(XmlAccessType.FIELD)
@NoJackson
public class CWebAssetsFilterList {
private List<TWebassetsfilter> cWebAssetsFilters = new
ArrayList<TWebassetsfilter>();
private long totalrecord;
getter,,,,setter...
generator
@GET
@Path("/cWebAssetsFilters/readAssetFilters")
@Produces("application/json")
public CWebAssetsFilterList readAssetsFilter(@QueryParam("start") int
start,@QueryParam("limit") int limit){
return new CWebAssetsFilterList();
}
this will return only the totalcount attribute on json;
no cWebAssetsFilters attribute is generated;
do i have an annotation to tell that is madattory to generate all attributes
?
best
Filipe
|