FileDocCategorySizeDatePackage
Product.javaAPI DocJBoss 4.2.12144Fri Jul 13 20:55:36 BST 2007xpetstore.domain

Product

public class Product extends Object implements Serializable
author
Herve Tchepannou
hibernate.class
table="T_PRODUCT"

Fields Summary
private String
_productId
private String
_name
private String
_description
private Set
_items
Constructors Summary
Methods Summary
public java.lang.StringgetDescription()

return
String
hibernate.property
length="255"

        return _description;
    
public java.util.SetgetItems()

return
Set
hibernate.set
role="items" lazy="true" cascade="delete"
hibernate.collection-key
column="product_fk"
hibernate.collection-one-to-many
class="xpetstore.domain.Item"

        return _items;
    
public java.lang.StringgetName()

return
String
hibernate.property
length="50"

        return _name;
    
public java.lang.StringgetProductId()

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

        return _productId;
    
public voidsetDescription(java.lang.String description)
Sets the description.

param
description The description to set

        _description = description;
    
public voidsetItems(java.util.Set items)
Sets the items.

param
items The items to set

        _items = items;
    
public voidsetName(java.lang.String name)
Sets the name.

param
name The name to set

        _name = name;
    
public voidsetProductId(java.lang.String productId)
Sets the productId.

param
productId The productId to set

        _productId = productId;