The example POJO classes used for PojoCache demo are: Person and Address. They are located under tests/org/jboss/cache/aop directory. Person has attributes of String age, Address addr, List languages , etc. We will demonstrate that once you put the POJO instance in the cache, plain get/set POJO methods will be intercepted by the cache.
Here is the snippet of the class definition for Person and Address .
public class Person {
String name=null;
int age=0;
Map hobbies=null;
Address address=null;
Set skills;
List languages;
public String getName() { return name; }
public void setName(String name) { this.name=name; }
...
}
public class Address {
String street=null;
String city=null;
int zip=0;
public String getStreet() { return street; }
public void setStreet(String street) { this.street=street; }
...
}