➊
private Long orderId; // 주문ID
private Cart cart; // 장바구니 객체
private Customer customer; // 고객 객체
private Shipping shipping; // 배송지 객체
➋
public Order() {
this.customer = new Customer();
this.shipping = new Shipping();
}
➌
public Long getOrderId() {
return orderId;
}
public void setOrderId(Long orderId) {
this.orderId = orderId;
}
public Cart getCart() {
return cart;
}
public void setCart(Cart cart) {
this.cart = cart;
}
public Customer getCustomer() {
return customer;
}
public void setCustomer(Customer customer) {
this.customer = customer;
}
public Shipping getShipping() {
return shipping;
}
public void setShipping(Shipping shipping) {
this.shipping = shipping;
}