#98, #97 - Fixed XML element name for PagedResources to allow deserialization.

We need to have a different XML element name for PagedResources as it can be used as root element and JAXB cannot tell the difference between Resource and PagedResource otherwise.
This commit is contained in:
ericbottard
2013-07-15 11:11:06 +02:00
committed by Oliver Gierke
parent cb6dd51e04
commit 9c4d6029cf
3 changed files with 93 additions and 1 deletions

View File

@@ -29,7 +29,7 @@ import org.springframework.util.Assert;
*
* @author Oliver Gierke
*/
@XmlRootElement(name = "entities")
@XmlRootElement(name = "pagedEntities")
public class PagedResources<T> extends Resources<T> {
public static PagedResources<?> NO_PAGE = new PagedResources<Object>();