コード例 #1
0
  public OrderEntryService() {
    Customer customer = dao.addCustomer("David Hurng");
    Customer customer2 = dao.addCustomer("Michelle Cady");
    Product product = dao.addProduct("apples", 12);
    Product product2 = dao.addProduct("bananas", 6.25);

    Cart cart = dao.addOrder(customer, product);
  }
コード例 #2
0
 public Cart addOrder(Customer customer, Product product) {
   return dao.addOrder(customer, product);
 }