chat-service/src/main/java/eu/stefanangelov/chatbot/chatservice/service/MessageService.java
/**
     * Process user message {@link MessageTO} and save it into database
     * @param messageTO incoming message from web socket
     */
Process user message  MessageTO and save it into database
@param messageTO incoming message from web socket
Process user message MessageTO and save it into database @param messageTO incoming message from web socket
public void processUserMessage(MessageTO messageTO){
        log.info("Persist user message with user indentificator {}", messageTO.getUserIdentificator());
        Message message = modelMapper.map(messageTO, Message.class);
        messageRepository.save(message);
        messageTO.setMessageId(message.getMessageId());
        log.info("Message is successfully persistent");
    }
public void processUserMessage ( MessageTO messageTO ) { log . info ( "Persist user message with user indentificator {}" , messageTO . getUserIdentificator ( ) ) ; Message message = modelMapper . map ( messageTO , Message . class ) ; messageRepository . save ( message ) ; messageTO . setMessageId ( message . getMessageId ( ) ) ; log . info ( "Message is successfully persistent" ) ; }
Process user message {@link MessageTO} and save it into database
 @param messageTO incoming message from web socket
Process user message { @link MessageTO } and save it into database @param messageTO incoming message from web socket