FileDocCategorySizeDatePackage
Person.javaAPI DocHibernate 3.2.51791Sat Sep 25 19:39:44 BST 2004org.hibernate.test.cuk

Person

public class Person extends Object implements Serializable
author
gavin

Fields Summary
private Long
id
private String
name
private Address
address
private String
userId
private boolean
deleted
private Set
accounts
Constructors Summary
Methods Summary
public booleanequals(java.lang.Object other)

		if (other instanceof Person) {
			Person that = (Person) other;
			return that.isDeleted() == deleted && that.getUserId().equals(userId);
		}
		else {
			return false;
		}
	
public java.util.SetgetAccounts()

return
Returns the accounts.

		return accounts;
	
public AddressgetAddress()

return
Returns the address.

		return address;
	
public java.lang.LonggetId()

return
Returns the id.

		return id;
	
public java.lang.StringgetName()

return
Returns the name.

		return name;
	
public java.lang.StringgetUserId()

return
Returns the userId.

	    	 
	   
		return userId;
	
public inthashCode()

		return userId.hashCode();
	
public booleanisDeleted()

		return deleted;
	
public voidsetAccounts(java.util.Set accounts)

param
accounts The accounts to set.

		this.accounts = accounts;
	
public voidsetAddress(Address address)

param
address The address to set.

		this.address = address;
	
public voidsetDeleted(boolean deleted)

		this.deleted = deleted;
	
public voidsetId(java.lang.Long id)

param
id The id to set.

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

param
name The name to set.

		this.name = name;
	
public voidsetUserId(java.lang.String userId)

param
userId The userId to set.

		this.userId = userId;