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

Category

public class Category extends Object
Implementation of Category.
author
Steve Ebersole

Fields Summary
private Long
id
private String
name
private Date
effectiveStartDate
private Date
effectiveEndDate
private Set
products
Constructors Summary
public Category()

	
public Category(String name)

		this.name = name;
	
public Category(String name, Date effectiveStartDate, Date effectiveEndDate)

		this.name = name;
		this.effectiveStartDate = effectiveStartDate;
		this.effectiveEndDate = effectiveEndDate;
	
Methods Summary
public booleanequals(java.lang.Object o)

		if ( this == o ) return true;
		if ( !( o instanceof Category ) ) return false;

		final Category category = ( Category ) o;

		if ( !name.equals( category.name ) ) {
			return false;
		}

		if ( effectiveEndDate != null ?
		        !effectiveEndDate.equals( category.effectiveEndDate ) :
		        category.effectiveEndDate != null ) {
			return false;
		}

		if ( effectiveStartDate != null ?
		        !effectiveStartDate.equals( category.effectiveStartDate ) :
		        category.effectiveStartDate != null ) {
			return false;
		}

		return true;
	
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.SetgetProducts()

		return products;
	
public inthashCode()

		int result;
		result = name.hashCode();
		result = 29 * result + ( effectiveStartDate != null ? effectiveStartDate.hashCode() : 0 );
		result = 29 * result + ( effectiveEndDate != null ? effectiveEndDate.hashCode() : 0 );
		return result;
	
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 voidsetProducts(java.util.Set products)

		this.products = products;