Package org.jboss.serial.data.cache

Examples of org.jboss.serial.data.cache.Student


public class TestFromJBossCache {

  public static Student createTestInstance()
  {
        Student joe = new Student();
        joe.setName("Joe");

        Address add = new Address();
        add.setZip(94086);
        add.setCity("Sunnyvale)");
        add.setStreet("Albertson");
        joe.setAddress(add);

        String str;
        for(int i=0; i < 100; i++)
        {
           Course course = new Course();
           str = RandomString.randomstring(10,20);
           course.setInstructor(str);
           str = RandomString.randomstring(10,20);
           course.setTitle(str);
           str = RandomString.randomstring(10,20);
           course.setRoom(str);
           joe.addCourse(course);
        }

        return joe;
   
  }
View Full Code Here

TOP

Related Classes of org.jboss.serial.data.cache.Student

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.