FileDocCategorySizeDatePackage
Category.javaAPI DocHibernate 3.2.51331Sat Feb 12 00:27:32 GMT 2005org.hibernate.test.legacy

Category

public class Category extends Object

Fields Summary
public static final String
ROOT_CATEGORY
public static final int
ROOT_ID
private long
id
private String
name
private List
subcategories
private Assignable
assignable
Constructors Summary
Methods Summary
public AssignablegetAssignable()

		return assignable;
	
public longgetId()
Returns the id.

return
long

	     	 
	   
		return id;
	
public java.lang.StringgetName()
Returns the name.

return
String

		return name;
	
public java.util.ListgetSubcategories()
Returns the subcategories.

return
List

		return subcategories;
	
public voidsetAssignable(Assignable assignable)

		this.assignable = assignable;
	
public voidsetId(long id)
Sets the id.

param
id The id to set

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

param
name The name to set

		this.name = name;
	
public voidsetSubcategories(java.util.List subcategories)
Sets the subcategories.

param
subcategories The subcategories to set

		this.subcategories = subcategories;
	
public java.lang.StringtoString()

		return id + ":" + name;