package com.soft.model;
import java.util.Date;
import java.util.List;
//订单类
public class Order {
private int id;
private String commodity;//商品
private double total;//金额
private List<Order> roleList;
public List<Order> getRoleList() {
return roleList;
}
public void setRoleList(List<Order> roleList) {
this.roleList = roleList;
}
private User user;//订单所对的用户
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getCommodity() {
return commodity;
}
public void setCommodity(String commodity) {
this.commodity = commodity;
}
public double getTotal() {
return total;
}
public void setTotal(double total) {
this.total = total;
}
public User getUser() {
return user;
}
public void setUser(User user) {
this.user = user;
}
@Override
public String toString() {
return "Order{" +
"id=" + id +
", commodity='" + commodity + '\'' +
", total=" + total +
", roleList=" + roleList +
", user=" + user +
'}';
}
}