FileDocCategorySizeDatePackage
Item.javaAPI DocJBoss 4.2.12735Fri Jul 13 20:55:36 BST 2007xpetstore.domain

Item

public class Item extends Object implements Serializable
author
Herve Tchepannou
hibernate.class
table="T_ITEM"

Fields Summary
private String
_itemId
private double
_listPrice
private double
_unitCost
private String
_description
private String
_imagePath
private Product
_product
Constructors Summary
Methods Summary
public java.lang.StringgetDescription()

return
String
hibernate.property
length="255"

        return _description;
    
public java.lang.StringgetImagePath()

return
String
hibernate.property
length="255"

        return _imagePath;
    
public java.lang.StringgetItemId()

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

        return _itemId;
    
public doublegetListPrice()

return
double
hibernate.property

        return _listPrice;
    
public ProductgetProduct()

return
Product
hibernate.many-to-one
cascade="none" column="product_fk"

        return _product;
    
public doublegetUnitCost()

return
double
hibernate.property

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

param
description The description to set

        _description = description;
    
public voidsetImagePath(java.lang.String imagePath)
Sets the imagePath.

param
imagePath The imagePath to set

        _imagePath = imagePath;
    
public voidsetItemId(java.lang.String itemId)
Sets the itemId.

param
itemId The itemId to set

        _itemId = itemId;
    
public voidsetListPrice(double listPrice)
Sets the listPrice.

param
listPrice The listPrice to set

        _listPrice = listPrice;
    
public voidsetProduct(Product product)
Sets the product.

param
product The product to set

        _product = product;
    
public voidsetUnitCost(double unitCost)
Sets the unitCost.

param
unitCost The unitCost to set

        _unitCost = unitCost;