FileDocCategorySizeDatePackage
AssociationKey.javaAPI DocHibernate 3.2.5821Tue Jul 12 15:12:58 BST 2005org.hibernate.engine

AssociationKey

public final class AssociationKey extends Object implements Serializable
Identifies a named association belonging to a particular entity instance. Used to record the fact that an association is null during loading.
author
Gavin King

Fields Summary
private EntityKey
ownerKey
private String
propertyName
Constructors Summary
public AssociationKey(EntityKey ownerKey, String propertyName)

		this.ownerKey = ownerKey;
		this.propertyName = propertyName;
	
Methods Summary
public booleanequals(java.lang.Object that)

		AssociationKey key = (AssociationKey) that;
		return key.propertyName.equals(propertyName) && 
			key.ownerKey.equals(ownerKey);
	
public inthashCode()

		return ownerKey.hashCode() + propertyName.hashCode();