FileDocCategorySizeDatePackage
LineItem.javaAPI DocHibernate 3.2.51203Mon Jul 19 23:07:40 BST 2004org.hibernate.test.filter

LineItem

public class LineItem extends Object
Implementation of LineItem.
author
Steve

Fields Summary
private Long
id
private Order
order
private int
sequence
private Product
product
private long
quantity
Constructors Summary
LineItem()

Methods Summary
public static org.hibernate.test.filter.LineItemgenerate(Order order, int sequence, Product product, long quantity)

		LineItem item = new LineItem();
		item.order = order;
		item.sequence = sequence;
		item.product = product;
		item.quantity = quantity;
		item.order.getLineItems().add(sequence, item);
		return item;
	
public java.lang.LonggetId()

		return id;
	
public OrdergetOrder()

		return order;
	
public ProductgetProduct()

		return product;
	
public longgetQuantity()

		return quantity;
	
public intgetSequence()

		return sequence;
	
public voidsetId(java.lang.Long id)

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

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

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

		this.quantity = quantity;
	
public voidsetSequence(int sequence)

		this.sequence = sequence;