class LocationRepositoryImpl implements LocationRepository {

    @Override
    public Optional<Location> find(long locationId) {
        return repository.findById(locationId).map(LocationRepositoryImpl::toDomain);
    }

    @Autowired  LocationRepositoryImpl(LocationCrudRepository repository);

}