/*
* JBoss, the OpenSource J2EE webOS
*
* Distributable under LGPL license.
* See terms of license at gnu.org.
*/
package org.jboss.cache.tests;

import java.io.Serializable;
import java.util.List;
import java.util.ArrayList;

/**
 * @author Bela Ban
 * @version $Id: SamplePojo.java,v 1.1.2.3 2005/04/06 21:07:05 starksm Exp $
 */
public class SamplePojo implements Serializable {
   int age;
   String name;
   List hobbies=new ArrayList();

   public SamplePojo(int age, String name) {
      this.age=age;
      this.name=name;
   }

   public int getAge() {
      return age;
   }

   public void setAge(int age) {
      this.age=age;
   }

   public String getName() {
      return name;
   }

   public void setName(String name) {
      this.name=name;
   }

   public List getHobbies() {
      return hobbies;
   }

   public void setHobbies(List hobbies) {
      this.hobbies=hobbies;
   }

   public String toString() {
      return "name=" + name + ", age=" + age + ", hobbies=" + hobbies;
   }
}