/** * Remove the cart from the persistence layer. Subclasses may override for custom cart retrieval logic. * * @param customer the customer to remove */ protected void deleteCustomer(Customer customer) { //We delete the customer this way (rather than with a delete query) in order to ensure the cascades take place customerService.deleteCustomer(customer); }