FileDocCategorySizeDatePackage
AddressId.javaAPI DocHibernate 3.2.5928Sat Feb 12 00:27:32 GMT 2005org.hibernate.test.typedonetoone

AddressId

public class AddressId extends Object implements Serializable
author
Gavin King

Fields Summary
private String
type
private String
customerId
Constructors Summary
public AddressId(String type, String customerId)

		this.customerId = customerId;
		this.type = type;
	
public AddressId()

Methods Summary
public booleanequals(java.lang.Object other)

		if ( !(other instanceof AddressId) ) return false;
		AddressId add = (AddressId) other;
		return type.equals(add.type) && customerId.equals(add.customerId);
	
public java.lang.StringgetCustomerId()

		return customerId;
	
public java.lang.StringgetType()

		return type;
	
public inthashCode()

		return customerId.hashCode() + type.hashCode();
	
public voidsetCustomerId(java.lang.String customerId)

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

		this.type = type;