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 String
FIND_BY_NAME
static String
FIND_BY_PRODUCT
private int
id
private String
name
private Integer
productCount
private List<Product>
products
private static long
serialVersionUID
-
Fields inherited from class ejava.examples.ejbwar.inventory.bo.InventoryRepresentation
NAMESPACE
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getId()
String
getName()
int
getProductCount()
List<Product>
getProducts()
void
setId(int id)
void
setName(String name)
void
setProductCount(int productCount)
void
setProducts(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)
-
-