package org.ordermgmt;

import java.util.List;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlTransient;

@XmlRootElement
public class Order {

	@XmlElement(name="orderItem")
	public List<OrderItem> orderItemList;
	
	public Order(){
		//default no-argument constructor
	}
	
	public Order(List<OrderItem> orderItemList){
		setOrderItemList(orderItemList);
	}

	@XmlTransient	
	public List<OrderItem> getOrderItemList(){
		return this.orderItemList;
	}
	
	public void setOrderItemList(List<OrderItem> orderItemList){
		this.orderItemList = orderItemList;
	}
	
}
