FileDocCategorySizeDatePackage
MapKey.javaAPI DocHibernate 3.2.51458Tue Jul 31 08:39:46 BST 2007org.hibernate.test.collection.backref.map.compkey

MapKey

public class MapKey extends Object implements Serializable
A composite map key.
author
Steve Ebersole

Fields Summary
private String
role
Constructors Summary
public MapKey()

	
public MapKey(String role)

		this.role = role;
	
Methods Summary
public booleanequals(java.lang.Object o)

		if ( this == o ) {
			return true;
		}
		if ( o == null || getClass() != o.getClass() ) {
			return false;
		}

		MapKey mapKey = ( MapKey ) o;

		if ( !role.equals( mapKey.role ) ) {
			return false;
		}

		return true;
	
public java.lang.StringgetRole()

		return role;
	
public inthashCode()

		return role.hashCode();