CreditCardDAO repository = new CreditCardDAO();
return repository.get(id);
}
public Collection<CreditCard> getByCustomerId(Serializable id) {
CreditCardDAO repository = new CreditCardDAO();
Customer customer = new CustomerService().getById(id);
return repository.getByCustomer(customer);
}