FileDocCategorySizeDatePackage
Category.javaAPI DocJBoss 4.2.12793Fri Jul 13 20:55:58 BST 2007xpetstore.domain.catalog.ejb

Category

public class Category extends Object
ejb.bean name="Category" type="CMP" view-type="local" primkey-field="categoryId" schema="Category" cmp-version="${ejb.cmp.version}"
ejb.value-object name="Category" match="*"
ejb.transaction type="Required"
ejb.persistence table-name="T_CATEGORY"
ejb.finder signature="Collection findAll()" query="SELECT OBJECT(c) FROM Category c"
jboss.query signature="Collection findAll()" strategy="on-load"
jboss.persistence create-table="${jboss.create.table}" remove-table="${jboss.remove.table}"

Fields Summary
private String
categoryId
private String
name
private String
description
private Collection
products
Constructors Summary
public Category()

      
   
Methods Summary
public java.lang.StringgetCategoryId()

ejb.pk-field
ejb.persistence column-name="categoryId" jdbc-type="VARCHAR" sql-type="varchar(10)"
ejb.interface-method
ejb.transaction type="Supports"

       return categoryId;
    
public java.lang.StringgetDescription()

ejb.persistence column-name="description" jdbc-type="VARCHAR" sql-type="varchar(255)"

       return description;
    
public java.lang.StringgetName()

ejb.persistence column-name="name" jdbc-type="VARCHAR" sql-type="varchar(50)"

       return name;
    
public java.util.CollectiongetProducts()

ejb.interface-method
ejb.relation name="category-products" role-name="category-has-products"

       return products;
    
public voidsetCategoryId(java.lang.String categoryId)

       this.categoryId = categoryId;
    
public voidsetDescription(java.lang.String description)

       this.description = description;
    
public voidsetName(java.lang.String name)

       this.name = name;
    
public voidsetProducts(java.util.Collection products)

       this.products = products;