class LocationRepositoryImpl implements LocationRepository {

    @Override
    public List<Location> locations() {
        return StreamSupport.stream(repository.findAll().spliterator(), false)
                .map(LocationRepositoryImpl::toDomain)
                .collect(toList());
    }

    @Autowired  LocationRepositoryImpl(LocationCrudRepository repository);

}