FileDocCategorySizeDatePackage
Address.javaAPI DocHibernate 3.2.51254Tue Dec 12 16:22:26 GMT 2006org.hibernate.test.onetoone.formula

Address

public class Address extends Object implements Serializable
author
Gavin King

Fields Summary
private Person
person
private String
type
private String
street
private String
state
private String
zip
Constructors Summary
Methods Summary
public booleanequals(java.lang.Object that)

		if ( !(that instanceof Address) ) return false;
		Address address = (Address) that;
		return address.getType().equals(type) && 
			address.getPerson().getName().equals( person.getName() );
	
public PersongetPerson()

		return person;
	
public java.lang.StringgetState()

		return state;
	
public java.lang.StringgetStreet()

		return street;
	
public java.lang.StringgetType()

		return type;
	
public java.lang.StringgetZip()

		return zip;
	
public inthashCode()

		return person.getName().hashCode() + type.hashCode();
	
public voidsetPerson(Person person)

		this.person = person;
	
public voidsetState(java.lang.String state)

		this.state = state;
	
public voidsetStreet(java.lang.String street)

		this.street = street;
	
public voidsetType(java.lang.String type)

		this.type = type;
	
public voidsetZip(java.lang.String zip)

		this.zip = zip;