@Entity public class Category extends InventoryRepresentation
Modifier and Type | Field and 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 |
NAMESPACE
Modifier and Type | Method and 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) |
getVersion, setVersion, toString, unmarshall
private static final long serialVersionUID
public static final String FIND_BY_NAME
public static final String FIND_BY_PRODUCT
private int id
private String name
private Integer productCount
public Category()
public Category(String name)
Copyright © 2015 John's Hopkins University, Engineering Programs for Professionals. All rights reserved.