www.pudn.com > restrant.zip > OrderEntity.java, change:2014-01-27,size:1955b


package com.alex.restrantol.entity; 
 
import java.util.Date; 
 
import com.alex.restrantol.util.ShoppingCartUtil; 
 
public class OrderEntity { 
	private String orderId; 
	private int customerId; 
	private String name; 
	private String tel; 
	private String email; 
	private String address; 
	private String taste; 
	private String remark; 
	private float totalPrice; 
	private Date date; 
	private int status; 
	private ShoppingCartUtil cart; 
	 
	public Date getDate() { 
		return date; 
	} 
	public void setDate(Date date) { 
		this.date = date; 
	} 
	public ShoppingCartUtil getCart() { 
		return cart; 
	} 
	public void setCart(ShoppingCartUtil cart) { 
		this.cart = cart; 
		this.totalPrice = cart.totalPrice(); 
	} 
	public String getName() { 
		return name; 
	} 
	public void setName(String name) { 
		this.name = name; 
	} 
	public String getTel() { 
		return tel; 
	} 
	public void setTel(String tel) { 
		this.tel = tel; 
	} 
	public String getEmail() { 
		return email; 
	} 
	public void setEmail(String email) { 
		this.email = email; 
	} 
	public String getAddress() { 
		return address; 
	} 
	public void setAddress(String address) { 
		this.address = address; 
	} 
	public String getTaste() { 
		return taste; 
	} 
	public void setTaste(String taste) { 
		this.taste = taste; 
	} 
	public String getRemark() { 
		return remark; 
	} 
	public void setRemark(String remark) { 
		this.remark = remark; 
	} 
	 
	public String getOrderId() { 
		return orderId; 
	} 
	public void setOrderId(String orderId) { 
		this.orderId = orderId; 
	} 
	public int getCustomerId() { 
		return customerId; 
	} 
	public void setCustomerId(int customerId) { 
		this.customerId = customerId; 
	} 
	public float getTotalPrice() { 
		return totalPrice; 
	} 
	public void setTotalPrice(float totalPrice) { 
		this.totalPrice = totalPrice; 
	} 
	public int getStatus() { 
		return status; 
	} 
	public void setStatus(int status) { 
		this.status = status; 
	} 
}