Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Transactional
- public ApiKeys save(ApiKeys apiKey) {
- log.debug("Request to save ApiKeys : {}", apiKey);
- if(apiKey.getSecret() == null && apiKey.getId() != null)
- {
- ApiKeys apiKeyFromDb = findOne(apiKey.getId());
- apiKey.setSecret(apiKeyFromDb.getSecret());
- apiKey.setSalt(apiKeyFromDb.getSalt());
- }
- return apiKeysRepository.save(apiKey);
- }
Add Comment
Please, Sign In to add comment