class VehicleRepositoryImpl implements VehicleRepository {

    @Override
    public Optional<Vehicle> find(long vehicleId) {
        return repository.findById(vehicleId).map(VehicleRepositoryImpl::toDomain);
    }

    public  VehicleRepositoryImpl(VehicleCrudRepository repository);

}