@RequestMapping(value = "/saveCustomer", method = RequestMethod.POST)
    public String saveCustomer(@ModelAttribute("customer") Customer customer, BindingResult result) {
        System.out.println("customer id:" + customer.getCustomerId()+ "name" + customer.getName());
        if (customer.getCustomerId() == null)
        {
            getDAO().create(customer);
        }
        else
        {
            Customer customerObject = getDAO().getById(customer.getCustomerId());
            customerObject.setName(customer.getName());
            
            getDAO().update(customerObject);
        }
        return "redirect:customers.htm";
    }