1 package org.springframework.samples.jpetstore.domain; 2 3 import java.io.Serializable ; 4 5 6 public class Item implements Serializable { 7 8 9 10 private String itemId; 11 private String productId; 12 private double listPrice; 13 private double unitCost; 14 private int supplierId; 15 private String status; 16 private String attribute1; 17 private String attribute2; 18 private String attribute3; 19 private String attribute4; 20 private String attribute5; 21 private Product product; 22 private int quantity; 23 24 25 26 public String getItemId() { return itemId; } 27 public void setItemId(String itemId) { this.itemId = itemId.trim(); } 28 29 public int getQuantity() { return quantity; } 30 public void setQuantity(int quantity) { this.quantity = quantity; } 31 32 public Product getProduct() { return product; } 33 public void setProduct(Product product) { this.product = product; } 34 35 public String getProductId() { return productId; } 36 public void setProductId(String productId) { this.productId = productId; } 37 38 public int getSupplierId() { return supplierId; } 39 public void setSupplierId(int supplierId) { this.supplierId = supplierId; } 40 41 public double getListPrice() { return listPrice; } 42 public void setListPrice(double listPrice) { this.listPrice = listPrice; } 43 44 public double getUnitCost() { return unitCost; } 45 public void setUnitCost(double unitCost) { this.unitCost = unitCost; } 46 47 public String getStatus() { return status; } 48 public void setStatus(String status) { this.status = status; } 49 50 public String getAttribute1() { return attribute1; } 51 public void setAttribute1(String attribute1) { this.attribute1 = attribute1; } 52 53 public String getAttribute2() { return attribute2; } 54 public void setAttribute2(String attribute2) { this.attribute2 = attribute2; } 55 56 public String getAttribute3() { return attribute3; } 57 public void setAttribute3(String attribute3) { this.attribute3 = attribute3; } 58 59 public String getAttribute4() { return attribute4; } 60 public void setAttribute4(String attribute4) { this.attribute4 = attribute4; } 61 62 public String getAttribute5() { return attribute5; } 63 public void setAttribute5(String attribute5) { this.attribute5 = attribute5; } 64 65 66 67 public String toString() { 68 return "(" + getItemId().trim() + "-" + getProductId().trim() + ")"; 69 } 70 71 } 72 | Popular Tags |