class VehicleRepositoryImpl implements VehicleRepository {

    @Override
    public void update(Vehicle vehicle) {
        repository.save(new VehicleEntity(vehicle.id(), vehicle.name(), vehicle.capacity()));
    }

    public  VehicleRepositoryImpl(VehicleCrudRepository repository);

}