171819202122232425
public class AcceptedCardsService implements RepositoryService<AcceptedCards> { @Override public AcceptedCards store(AcceptedCards acceptedCards) { AcceptedCardsDAO repository = new AcceptedCardsDAO(); return repository.save(acceptedCards); }
252627282930313233
} @Override public void remove(AcceptedCards acceptedCards) { AcceptedCardsDAO repository = new AcceptedCardsDAO(); repository.delete(acceptedCards); }
333435363738394041
} @Override public Collection<AcceptedCards> getAll() { AcceptedCardsDAO repository = new AcceptedCardsDAO(); return repository.getAll(); }
4041424344454647
} @Override public AcceptedCards getById(Serializable id) { AcceptedCardsDAO repository = new AcceptedCardsDAO(); return repository.get(id); }