Package org.objectweb.speedo.tutorial.pobjects.additional.queries

Examples of org.objectweb.speedo.tutorial.pobjects.additional.queries.ContactDetails


   * Create persistent objects
   */
  public static void createObjects(PersistenceManager pm){
   
    //create 6 persons
    Person person1 = new Person("Grange Jean-Luc", 54, new ContactDetails("jeanluc.grange@wanadoo.fr", "1234567890"));
    Person person2 = new Person("Bordes Raymond", 75, new ContactDetails("raymond.bordes@wanadoo.fr", "1234567890"));
    Person person3 = new Person("Labbe Loic", 16, new ContactDetails("loic.labbe@wanadoo.fr", "1234567890"));
    Person person4 = new Person("Lambert Celine", 19, new ContactDetails("celine.lambert@wanadoo.fr", "0987654321"));
    Person person5 = new Person("Couture Zelie", 23, new ContactDetails("zelie.couture@wanadoo.fr", "0987654321"));
    Person person6 = new Person("Landreau Vincent", 2, new ContactDetails("vincent.landreau@wanadoo.fr", "0987654321"));
   
    person1.addChild(person4);
    person1.addChild(person5);
   
    person5.addChild(person6);
View Full Code Here

TOP

Related Classes of org.objectweb.speedo.tutorial.pobjects.additional.queries.ContactDetails

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.