예제 #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 Customer addCustomer(String name) {
   return dao.addCustomer(name);
 }