public CustomerRepresentation updateCustomerAddress(String customerId, String addr) { Customer c = CustomerDAO.retrieveCustomer(Long.parseLong(customerId)); c.setAddress(addr); CustomerDAO.addCustomer(c); return this.getCustomer(customerId); }
public CustomerRepresentation updateCustomerPassword(String customerId, String pass) { Customer c = CustomerDAO.retrieveCustomer(Long.parseLong(customerId)); c.setPassword(pass); CustomerDAO.addCustomer(c); return this.getCustomer(customerId); }