Generic repository.