FileDocCategorySizeDatePackage
LineItemPK.javaAPI DocHibernate 3.2.51165Tue Nov 21 10:38:44 GMT 2006org.hibernate.test.idprops

LineItemPK

public class LineItemPK extends Object implements Serializable
{@inheritDoc}
author
Steve Ebersole

Fields Summary
private Order
order
private String
productCode
Constructors Summary
public LineItemPK()

	
public LineItemPK(Order order, String productCode)

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

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

		LineItemPK that = ( LineItemPK ) o;

		if ( !order.equals( that.order ) ) {
			return false;
		}
		if ( !productCode.equals( that.productCode ) ) {
			return false;
		}

		return true;
	
public OrdergetOrder()

		return order;
	
public java.lang.StringgetProductCode()

		return productCode;
	
public inthashCode()

		int result;
		result = order.hashCode();
		result = 31 * result + productCode.hashCode();
		return result;
	
public voidsetOrder(Order order)

		this.order = order;
	
public voidsetProductCode(java.lang.String productCode)

		this.productCode = productCode;