Java tutorial
package org.apache.commons.beanutils; import java.util.Date; public class Person { private String name; private int age; private Date birthday; private Person parent; public Person() { } public Person(String name) { this.name = name; } public Date getBirthday() { return birthday; } public void setBirthday(Date birthday) { this.birthday = birthday; } 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 Person getParent() { return parent; } public void setParent(Person parent) { this.parent = parent; } }