Java JAXB和包含泛型的集合
下面是JAXB/Java代码。在我们将Java JAXB和包含泛型的集合,java,generics,jaxb,Java,Generics,Jaxb,下面是JAXB/Java代码。在我们将列表行更改为列表之前,这一切都很顺利。请看这篇文章。我认为它有你需要的: @XmlRootElement @XmlType(name = "", propOrder = { "records", "page", "total", "rows" }) public class JQGridJsonRoot { int total; //total pages for the query
列表行
更改为列表之前,这一切都很顺利。请看这篇文章。我认为它有你需要的:
@XmlRootElement
@XmlType(name = "", propOrder = {
"records",
"page",
"total",
"rows"
})
public class JQGridJsonRoot {
int total; //total pages for the query
int page; //current page of the query
int records; //total number of records for the query
List<? extends JQGridTO> rows
...