Examples of People


Examples of org.ytreza.data.model.people.People

  }
 
  @Test
  public void testSaveAddress() throws ItemException, UnableToSaveException {
    Address<People> address = tableAddress.createItem();
    People people = tablePeople.createItem();
    people.setFirstName("doe");
    people.save();
    address.setOwner(people);
    address.save();
    assertFalse(address.isNew());
  }
View Full Code Here

Examples of org.ytreza.data.model.people.People

  }
 
  @Test
  public void testGetAddress() throws ItemException, ItemException, UnregisteredTableError, UnableToInitializeException, UnableToSaveException {
    Address<People> address = tableAddress.createItem();
    People people = tablePeople.createItem();
    people.setFirstName("doe");
    address.setOwner(people);
    people.save();
    address.save();
    Integer IdAddress = address.getId();
   
    tableAddress.getItem(IdAddress);
  }
View Full Code Here

Examples of prototype.People

   * @param args
   */
   
  public static void main(String[] args) {
    // TODO Auto-generated method stub
    People oPeople = People.getPrototype();

    System.out.println("Edad "+oPeople.getAge()+ " Nombre"+oPeople.getName());
   
    People oPeople2 = People.getPrototype();

    oPeople2.setName("Victor Aravena");
    System.out.println("Edad "+oPeople2.getAge()+ " Nombre "+oPeople2.getName());
     

    System.out.println("Edad "+oPeople.getAge()+ " Nombre"+oPeople.getName());

  }
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.