Created
June 14, 2021 16:52
-
-
Save Ruhshan/790c55f9b68e1c7e3ec04988e5548b43 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Service | |
@Slf4j | |
public class KeyValuePairServiceImpl implements KeyValuePairService { | |
private final KeyValuePairRepository keyValuePairRepository; | |
public KeyValuePairServiceImpl(KeyValuePairRepository keyValuePairRepository) { | |
this.keyValuePairRepository = keyValuePairRepository; | |
} | |
@Override | |
public KeyValuePair findByKey(String key) { | |
return keyValuePairRepository.findByKey(key); | |
} | |
@Override | |
public void save(KeyValuePair keyValuePair) { | |
keyValuePairRepository.save(keyValuePair); | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment