public Evse updateEvse ( Long chargingStationTypeId , Evse evse ) { ChargingStationType chargingStationType = chargingStationTypeRepository . findOne ( chargingStationTypeId ) ; Evse existingEvse = getEvseById ( chargingStationType , evse . getId ( ) ) ; chargingStationType . getEvses ( ) . remove ( existingEvse ) ; chargingStationType . getEvses ( ) . add ( evse ) ; ChargingStationType updatedChargingStationType = chargingStationTypeRepository . createOrUpdate ( chargingStationType ) ; return getEvseById ( updatedChargingStationType , evse . getId ( ) ) ; }
Update an evse .