package com.topsun.posclient.datamodel.dto; import java.io.Serializable; import java.util.List; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlElements; import javax.xml.bind.annotation.XmlRootElement; import javax.xml.bind.annotation.XmlType; import com.topsun.posclient.datamodel.Shop; /** * @author Dong * */ @XmlAccessorType(XmlAccessType.PROPERTY) @XmlRootElement(name="data") @XmlType(name = "ShopDTO", propOrder = { "shopList" },namespace="http://com.topsun.posclient/ShopDTO") public class ShopDTO implements Serializable { /** * */ private static final long serialVersionUID = 1L; private List<Shop> shopList; @XmlElements({ @XmlElement(name = "shop", type = Shop.class) }) public List<Shop> getShopList() { return shopList; } public void setShopList(List<Shop> shopList) { this.shopList = shopList; } }