FileDocCategorySizeDatePackage
Part.javaAPI DocHibernate 3.2.5738Sat Feb 12 00:27:32 GMT 2005org.hibernate.test.mapcompelem

Part.java

//$Id: Part.java 5686 2005-02-12 07:27:32Z steveebersole $
package org.hibernate.test.mapcompelem;


/**
 * @author Gavin King
 */
public class Part {
	private String name;
	private String description;
	Part() {}
	public Part(String n, String pw) {
		name=n;
		description = pw;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String password) {
		this.description = password;
	}
	public boolean equals(Object that) {
		return ( (Part) that ).getName().equals(name);
	}
	public int hashCode() {
		return name.hashCode();
	}
	public String toString() {
		return name + ":" + description;
	}
}