FileDocCategorySizeDatePackage
LineItem.javaAPI DocHibernate 3.2.52787Thu Nov 25 07:37:00 GMT 2004org.hibernate.test.cid

LineItem

public class LineItem extends Object
author
Gavin King

Fields Summary
private Id
id
private int
quantity
private Order
order
private Product
product
Constructors Summary
public LineItem(Order o, Product p)


	     
		this.order = o;
		this.id.orderNumber = o.getId().getOrderNumber();
		this.id.customerId = o.getId().getCustomerId();
		this.id.productId = p.getProductId();
		o.getLineItems().add(this);
	
public LineItem()

Methods Summary
public org.hibernate.test.cid.LineItem$IdgetId()

return
Returns the id.

		return id;
	
public OrdergetOrder()

return
Returns the order.

		return order;
	
public ProductgetProduct()

return
Returns the product.

		return product;
	
public intgetQuantity()

return
Returns the quantity.

		return quantity;
	
public voidsetId(org.hibernate.test.cid.LineItem$Id id)

param
id The id to set.

		this.id = id;
	
public voidsetOrder(Order order)

param
order The order to set.

		this.order = order;
	
public voidsetProduct(Product product)

param
product The product to set.

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

param
quantity The quantity to set.

		this.quantity = quantity;