Class Category
- java.lang.Object
-
- ejava.examples.ejbwar.inventory.bo.InventoryRepresentation
-
- ejava.examples.ejbwar.inventory.bo.Category
-
- All Implemented Interfaces:
Serializable
@Entity public class Category extends InventoryRepresentation
This class represents a product category which has a many-to-many relationship with product. It has been mapped to the DB and XML.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringFIND_BY_NAMEstatic StringFIND_BY_PRODUCTprivate intidprivate Stringnameprivate IntegerproductCountprivate List<Product>productsprivate static longserialVersionUID-
Fields inherited from class ejava.examples.ejbwar.inventory.bo.InventoryRepresentation
NAMESPACE
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetId()StringgetName()intgetProductCount()List<Product>getProducts()voidsetId(int id)voidsetName(String name)voidsetProductCount(int productCount)voidsetProducts(List<Product> products)-
Methods inherited from class ejava.examples.ejbwar.inventory.bo.InventoryRepresentation
getVersion, setVersion
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
FIND_BY_NAME
public static final String FIND_BY_NAME
- See Also:
- Constant Field Values
-
FIND_BY_PRODUCT
public static final String FIND_BY_PRODUCT
- See Also:
- Constant Field Values
-
id
private int id
-
name
private String name
-
productCount
private Integer productCount
-
-
Constructor Detail
-
Category
public Category()
-
Category
public Category(String name)
-
-