FileDocCategorySizeDatePackage
Category.javaAPI DocJBoss 4.2.12237Fri Jul 13 20:55:36 BST 2007xpetstore.domain

Category

public class Category extends Object implements Serializable
author
Herve Tchepannou
hibernate.class
table="T_CATEGORY"

Fields Summary
private String
_categoryId
private String
_name
private String
_description
private Set
_products
Constructors Summary
Methods Summary
public java.lang.StringgetCategoryId()

return
String
hibernate.id
generator-class="assigned" length="10"


    //~ Methods ----------------------------------------------------------------

                        
        
    
        return _categoryId;
    
public java.lang.StringgetDescription()

return
String
hibernate.property
length="255"

        return _description;
    
public java.lang.StringgetName()

return
String
hibernate.property
length="50"

        return _name;
    
public java.util.SetgetProducts()

return
Set
hibernate.set
role="products" lazy="true" cascade="delete"
hibernate.collection-key
column="category_fk"
hibernate.collection-one-to-many
class="xpetstore.domain.Product"

        return _products;
    
public voidsetCategoryId(java.lang.String categoryId)
Sets the categoryId.

param
categoryId The categoryId to set

        _categoryId = categoryId;
    
public voidsetDescription(java.lang.String description)
Sets the description.

param
description The description to set

        _description = description;
    
public voidsetName(java.lang.String name)
Sets the name.

param
name The name to set

        _name = name;
    
public voidsetProducts(java.util.Set products)
Sets the products.

param
products The products to set

        _products = products;