Package com.sivalabs.phonebook.entities

Examples of com.sivalabs.phonebook.entities.Contact


    User user2 = new User(null, "siva@gmail.com", "siva", "Siva");
   
    user1 = userService.createUser(user1);
    user2 = userService.createUser(user2);
   
    Contact c1 = new Contact();
    c1.setName("Ramu");
    c1.setEmail("ramu@gmail.com");
    c1.setMobile("9874568584");
    c1.setUser(user1);
   
    Contact c2 = new Contact();
    c2.setName("Suman");
    c2.setEmail("suman@gmail.com");
    c2.setMobile("965852222");
    c2.setUser(user1);
   
    Contact c3 = new Contact();
    c3.setName("Anil");
    c3.setEmail("anil@gmail.com");
    c3.setMobile("966666666");
    c3.setUser(user2);
   
    phoneBookService.createContact(user1.getId(), c1);
    phoneBookService.createContact(user1.getId(), c2);
    phoneBookService.createContact(user2.getId(), c3);
   
View Full Code Here


  public void setContacts(List<Contact> contacts) {
    this.contacts = contacts;
 
  public Contact getNewContact() {
    if(newContact == null){
      newContact = new Contact();
    }
    return newContact;
  }
View Full Code Here

TOP

Related Classes of com.sivalabs.phonebook.entities.Contact

Copyright © 2018 www.massapicom. 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.