Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- *
- */
- package model;
- /**
- * @author suleymancan Mar 7, 2018
- */
- public class Product {
- // POJO CLASS
- private String productId;
- private String name;
- private double unitPrice;
- private String description;
- private String manufacturer;
- private String category;
- private long unitsInStock;
- private String condition;
- public Product() {
- super();
- }
- public Product(String productId, String name, double unitPrice) {
- super();
- this.productId = productId;
- this.name = name;
- this.unitPrice = unitPrice;
- }
- public String getProductId() {
- return productId;
- }
- public void setProductId(String productId) {
- this.productId = productId;
- }
- public String getName() {
- return name;
- }
- public void setName(String name) {
- this.name = name;
- }
- public double getUnitPrice() {
- return unitPrice;
- }
- public void setUnitPrice(double unitPrice) {
- this.unitPrice = unitPrice;
- }
- public String getDescription() {
- return description;
- }
- public void setDescription(String description) {
- this.description = description;
- }
- public String getManufacturer() {
- return manufacturer;
- }
- public void setManufacturer(String manufacturer) {
- this.manufacturer = manufacturer;
- }
- public String getCategory() {
- return category;
- }
- public void setCategory(String category) {
- this.category = category;
- }
- public long getUnitsInStock() {
- return unitsInStock;
- }
- public void setUnitsInStock(long unitsInStock) {
- this.unitsInStock = unitsInStock;
- }
- public String getCondition() {
- return condition;
- }
- public void setCondition(String condition) {
- this.condition = condition;
- }
- @Override
- public String toString() {
- return "Product [productId=" + productId + ", name=" + name + ", unitPrice=" + unitPrice + ", description="
- + description + ", manufacturer=" + manufacturer + ", category=" + category + ", unitsInStock="
- + unitsInStock + ", condition=" + condition + "]";
- }
- }
Add Comment
Please, Sign In to add comment