All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.saphyra.randwo.mapping.itemvalue.service.UpdateItemValueMappingService Maven / Gradle / Ivy

There is a newer version: 1.1.0
Show newest version
package com.github.saphyra.randwo.mapping.itemvalue.service;

import java.util.Map;
import java.util.UUID;

import org.springframework.stereotype.Service;

import com.github.saphyra.randwo.mapping.itemvalue.repository.ItemValueMappingDao;
import com.github.saphyra.randwo.mapping.itemvalue.service.create.CreateItemValueMappingService;
import lombok.RequiredArgsConstructor;

@Service
@RequiredArgsConstructor
public class UpdateItemValueMappingService {
    private final ItemValueMappingDao itemValueMappingDao;
    private final CreateItemValueMappingService createItemValueMappingService;

    public void update(UUID itemId, Map keyValues) {
        itemValueMappingDao.deleteByItemId(itemId);
        createItemValueMappingService.create(itemId, keyValues);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy