@Entity public class Product extends InventoryRepresentation
Modifier and Type | Field and Description |
---|---|
static String |
FIND_BY_NAME |
private int |
id |
private String |
name |
private Double |
price |
private Integer |
quantity |
private static long |
serialVersionUID |
NAMESPACE
Constructor and Description |
---|
Product() |
Product(String name) |
Product(String name,
Integer quantity,
Double price) |
Modifier and Type | Method and Description |
---|---|
int |
getId() |
String |
getName() |
Double |
getPrice() |
Integer |
getQuantity() |
void |
setId(int id) |
void |
setName(String name) |
void |
setPrice(Double price) |
void |
setQuantity(Integer quantity) |
getVersion, setVersion, toString, unmarshall
private static final long serialVersionUID
public static final String FIND_BY_NAME
private int id
private String name
private Integer quantity
private Double price
public Product()
public Product(String name)
public int getId()
public void setId(int id)
public String getName()
public void setName(String name)
public Integer getQuantity()
public void setQuantity(Integer quantity)
public Double getPrice()
public void setPrice(Double price)
Copyright © 2015 John's Hopkins University, Engineering Programs for Professionals. All rights reserved.