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

LineItem

public class LineItem extends Object
{@inheritDoc}
author
Steve Ebersole

Fields Summary
private LineItemPK
pk
private int
quantity
private String
id
Constructors Summary
public LineItem()

	
public LineItem(LineItemPK pk, int quantity)

		this.pk = pk;
		this.quantity = quantity;
		this.pk.getOrder().getLineItems().add( this );
	
public LineItem(Order order, String productCode, int quantity)

		this( new LineItemPK( order, productCode ), quantity );
	
Methods Summary
public java.lang.StringgetId()

		return id;
	
public LineItemPKgetPk()

		return pk;
	
public intgetQuantity()

		return quantity;
	
public voidsetId(java.lang.String id)

		this.id = id;
	
public voidsetPk(LineItemPK pk)

		this.pk = pk;
	
public voidsetQuantity(int quantity)

		this.quantity = quantity;