@Transactional(readOnly = false) public void deleteUserRequest(Long requestId) { UserRequest userRequest = userRepository.loadUserRequestById(requestId); if (userRequest != null) { logger.info("Deleting " + userRequest); userRepository.deleteUserRequest(userRequest); } }
public UserRequest getUserRequestById(Long requestId) { return userRepository.loadUserRequestById(requestId); }