Package com.sahuaro.repositories

Examples of com.sahuaro.repositories.ProspectRepository.save()


        IProspectRepository prospectRepo = new ProspectRepository();
        IMessageRepository messageRepo = new MessageRepository();
        ISuggestionRepository suggRepo = new SuggestionRepository();
        //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());
View Full Code Here


    IContactRepository contactsRepo = new ContactRepository();
    IMessageRepository messagesRepo = new MessageRepository();
   
    //creates the prospect and saves it
    Prospect prospect = new Prospect(firstName, lastName, email);
    Key<Prospect> prospectKey = prospectsRepo.save(prospect);
    System.out.println("Prospect saved");
    //it get it back
   
   
    //creates the contact message
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.