package com.prancingdonkey.model; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlRootElement; import java.io.Serializable; import java.util.List; @XmlRootElement @XmlAccessorType(XmlAccessType.FIELD) public class Order implements Serializable { Customer customer; String orderId; List<LineItem> items; public Customer getCustomer() { return customer; } public void setCustomer(Customer customer) { this.customer = customer; } public String getOrderId() { return orderId; } public void setOrderId(String orderId) { this.orderId = orderId; } public List<LineItem> getItems() { return items; } public void setItems(List<LineItem> items) { this.items = items; } }