this.customer = customer; this.id.customerId = customer.getCustomerId(); this.id.orderNumber = customer.getOrders().size(); customer.getOrders().add(this);
LineItem li = new LineItem( this, product ); li.setQuantity( quantity ); lineItems.add( li ); return li;
returnReturns the customer. return customer;
return customer;
returnReturns the id. return id;
return id;
returnReturns the lineItems. return lineItems;
return lineItems;
returnReturns the orderDate. return orderDate;
return orderDate;
returnReturns the total. return total;
return total;
paramcustomer The customer to set. this.customer = customer;
this.customer = customer;
paramid The id to set. this.id = id;
this.id = id;
paramlineItems The lineItems to set. this.lineItems = lineItems;
this.lineItems = lineItems;
paramorderDate The orderDate to set. this.orderDate = orderDate;
this.orderDate = orderDate;
paramtotal The total to set. this.total = total;
this.total = total;