[jboss-cvs] JBossCache/tests-50/functional/org/jboss/cache/pojo/test ...

Ben Wang bwang at jboss.com
Sat Aug 5 00:13:25 EDT 2006


  User: bwang   
  Date: 06/08/05 00:13:25

  Added:       tests-50/functional/org/jboss/cache/pojo/test 
                        ArrayObject.java
  Log:
  Test for array
  
  Revision  Changes    Path
  1.1      date: 2006/08/05 04:13:25;  author: bwang;  state: Exp;JBossCache/tests-50/functional/org/jboss/cache/pojo/test/ArrayObject.java
  
  Index: ArrayObject.java
  ===================================================================
  /*
   * JBoss, Home of Professional Open Source
   *
   * Distributable under LGPL license.
   * See terms of license at gnu.org.
   */
  
  package org.jboss.cache.pojo.test;
  
  /**
   */
  // We are using JDK1.5 annotation.
  @org.jboss.cache.pojo.annotation.InstanceOfPojoCacheable
  public class ArrayObject
  {
     private Person[] team;
  
     public ArrayObject()
     {
        team = new Person[10];
     }
  
     public Person[] getTeam()
     {
        return team;
     }
  
     public void setTeam(Person[] t)
     {
        team = t;
     }
  
     public Person getPerson(int index)
     {
        return team[index];
     }
  
     public void setPerson(int index, Person p)
     {
        team[index] = p;
     }
  }
  
  
  



More information about the jboss-cvs-commits mailing list