FileDocCategorySizeDatePackage
Part.javaAPI DocHibernate 3.2.51144Wed Jun 07 10:30:02 BST 2006org.hibernate.test.jpa

Part

public class Part extends Object
author
Steve Ebersole

Fields Summary
private Long
id
private Item
item
private String
name
private String
stockNumber
private BigDecimal
unitPrice
Constructors Summary
public Part()

	
public Part(Item item, String name, String stockNumber, BigDecimal unitPrice)

		this.item = item;
		this.name = name;
		this.stockNumber = stockNumber;
		this.unitPrice = unitPrice;

		this.item.getParts().add( this );
	
Methods Summary
public java.lang.LonggetId()

		return id;
	
public ItemgetItem()

		return item;
	
public java.lang.StringgetName()

		return name;
	
public java.lang.StringgetStockNumber()

		return stockNumber;
	
public java.math.BigDecimalgetUnitPrice()

		return unitPrice;
	
private voidsetId(java.lang.Long id)

		this.id = id;
	
private voidsetItem(Item item)

		this.item = item;
	
public voidsetName(java.lang.String name)

		this.name = name;
	
public voidsetStockNumber(java.lang.String stockNumber)

		this.stockNumber = stockNumber;
	
public voidsetUnitPrice(java.math.BigDecimal unitPrice)

		this.unitPrice = unitPrice;