FileDocCategorySizeDatePackage
Product.javaAPI DocHibernate 3.2.51914Mon Apr 25 11:57:32 BST 2005org.hibernate.test.filter

Product

public class Product extends Object
author
Steve Ebersole

Fields Summary
private Long
id
private String
name
private int
stockNumber
private Date
effectiveStartDate
private Date
effectiveEndDate
private Set
orderLineItems
private Set
categories
Constructors Summary
Methods Summary
public voidaddCategory(Category category)

		if ( category == null ) {
			return;
		}

		if ( categories == null ) {
			categories = new HashSet();
		}

		categories.add( category );
		if ( category.getProducts() == null ) {
			category.setProducts( new HashSet() );
		}
		category.getProducts().add( this );
	
public booleanequals(java.lang.Object obj)

		return ( (Product) obj ).stockNumber == this.stockNumber;
	
public java.util.SetgetCategories()

		return categories;
	
public java.util.DategetEffectiveEndDate()

		return effectiveEndDate;
	
public java.util.DategetEffectiveStartDate()

		return effectiveStartDate;
	
public java.lang.LonggetId()

		return id;
	
public java.lang.StringgetName()

		return name;
	
public java.util.SetgetOrderLineItems()

		return orderLineItems;
	
public intgetStockNumber()

		return stockNumber;
	
public inthashCode()

		return stockNumber;
	
public voidsetCategories(java.util.Set categories)

		this.categories = categories;
	
public voidsetEffectiveEndDate(java.util.Date effectiveEndDate)

		this.effectiveEndDate = effectiveEndDate;
	
public voidsetEffectiveStartDate(java.util.Date effectiveStartDate)

		this.effectiveStartDate = effectiveStartDate;
	
public voidsetId(java.lang.Long id)

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

		this.name = name;
	
public voidsetOrderLineItems(java.util.Set orderLineItems)

		this.orderLineItems = orderLineItems;
	
public voidsetStockNumber(int stockNumber)

		this.stockNumber = stockNumber;