FileDocCategorySizeDatePackage
CrazyCompositeKey.javaAPI DocHibernate 3.2.5791Tue May 31 15:24:42 BST 2005org.hibernate.test.hql

CrazyCompositeKey

public class CrazyCompositeKey extends Object implements Serializable
Implementation of CrazyCompositeKey.
author
Steve Ebersole

Fields Summary
private Long
id
private Long
otherId
Constructors Summary
Methods Summary
public booleanequals(java.lang.Object that)

		CrazyCompositeKey cck = (CrazyCompositeKey) that;
		return cck.id.longValue() == id.longValue()
			&& cck.otherId.longValue() == otherId.longValue();
	
public java.lang.LonggetId()

		return id;
	
public java.lang.LonggetOtherId()

		return otherId;
	
public inthashCode()

		return id.hashCode() + otherId.hashCode();
	
public voidsetId(java.lang.Long id)

		this.id = id;
	
public voidsetOtherId(java.lang.Long otherId)

		this.otherId = otherId;