예제 #1
0
 public Customer createNewCustomer(String firstname, String lastname) {
   Customer customer = new Customer();
   customer.setFirstname(firstname);
   customer.setLastname(lastname);
   customerDao.save(customer);
   return customer;
 }
예제 #2
0
 public List<Customer> getAllCustomers() {
   return customerDao.findAll();
 }