Package com.sahuaro.interfaces

Examples of com.sahuaro.interfaces.IMessageRepository.save()


        //creates a prospect
        Prospect prospect = new Prospect(firstName, lastName, email);
        Key<Prospect> prospKey = prospectRepo.save(prospect);
        //creates a contact
        Message messageObj = new Message(message, prospKey.getId());
        Key<Message> msgKey = messageRepo.save(messageObj);
       
        Suggestion suggestion = new Suggestion(message, msgKey.getId());
        Key<Suggestion> suggKey = suggRepo.save(suggestion);
       
        //creates an EmailSender instance
View Full Code Here


    //it get it back
   
   
    //creates the contact message
    Message message = new Message(msg, prospectKey.getId());
    Key<Message> messageKey = messagesRepo.save(message);
    System.out.println("Message saved");
    //get the message back to use the id
    Contact contact = new Contact(company, telephone, messageKey.getId());
    //saves the contact at Google servers
    Key<Contact> contactKey = contactsRepo.save(contact);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.