FileDocCategorySizeDatePackage
Person.javaAPI DocHibernate 3.2.51361Mon Mar 26 12:24:58 BST 2007org.hibernate.test.component.basic

Person

public class Person extends Object
author
Gavin King

Fields Summary
private String
name
private Date
dob
private String
address
private String
currentAddress
private String
previousAddress
private int
yob
Constructors Summary
Person()

public Person(String name, Date dob, String address)

		this.name = name;
		this.dob = dob;
		this.address = address;
		this.currentAddress = address;
	
Methods Summary
public voidchangeAddress(java.lang.String add)

		setPreviousAddress( getAddress() );
		setAddress(add);
	
public java.lang.StringgetAddress()

		return address;
	
public java.lang.StringgetCurrentAddress()

		return currentAddress;
	
public java.util.DategetDob()

		return dob;
	
public java.lang.StringgetName()

		return name;
	
public java.lang.StringgetPreviousAddress()

		return previousAddress;
	
public intgetYob()

		return yob;
	
public voidsetAddress(java.lang.String address)

		this.address = address;
	
public voidsetCurrentAddress(java.lang.String currentAddress)

		this.currentAddress = currentAddress;
	
public voidsetDob(java.util.Date dob)

		this.dob = dob;
	
public voidsetName(java.lang.String name)

		this.name = name;
	
public voidsetPreviousAddress(java.lang.String previousAddress)

		this.previousAddress = previousAddress;
	
public voidsetYob(int age)

		this.yob = age;