1718192021222324
public class ServiceCaseService implements RepositoryService<ServiceCase> { @Override public ServiceCase store(ServiceCase serviceCase) { ServiceCaseDAO repository = new ServiceCaseDAO(); return repository.save(serviceCase); }
242526272829303132
} @Override public void remove(ServiceCase serviceCase) { ServiceCaseDAO repository = new ServiceCaseDAO(); repository.delete(serviceCase); }
3233343536373839
} @Override public Collection<ServiceCase> getAll() { ServiceCaseDAO repository = new ServiceCaseDAO(); return repository.getAll(); }
3839404142434445
return repository.getAll(); } @Override public ServiceCase getById(Serializable id) { ServiceCaseDAO repository = new ServiceCaseDAO(); return repository.get(id); }