@Entity public class Product extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
private int |
id |
private String |
name |
private int |
quantity |
Constructor and Description |
---|
Product() |
Product(int id) |
Product(Product p) |
Product(String name,
int quantity) |
Modifier and Type | Method and Description |
---|---|
int |
getId() |
String |
getName() |
int |
getQuantity() |
void |
setId(int id) |
void |
setName(String name) |
void |
setQuantity(int quantity) |
String |
toString() |
private int id
private String name
private int quantity
public Product()
public Product(int id)
public Product(String name, int quantity)
public Product(Product p)
Copyright © 2015 John's Hopkins University, Engineering Programs for Professionals. All rights reserved.