1 package org.org.usurper.jpetstoredomain;
2
3 import java.io.Serializable;
4
5 public class Item implements Serializable {
6
7
8
9
10
11
12 private static final long serialVersionUID = 849585416889615621L;
13
14 private String itemId;
15
16 private String productId;
17
18 private double listPrice;
19
20 private double unitCost;
21
22 private int supplierId;
23
24 private String status;
25
26 private String attribute1;
27
28 private String attribute2;
29
30 private String attribute3;
31
32 private String attribute4;
33
34 private String attribute5;
35
36 private Product product;
37
38 private int quantity;
39
40
41
42 public String getItemId() {
43 return itemId;
44 }
45
46 public void setItemId(String itemId) {
47 this.itemId = itemId.trim();
48 }
49
50 public int getQuantity() {
51 return quantity;
52 }
53
54 public void setQuantity(int quantity) {
55 this.quantity = quantity;
56 }
57
58 public Product getProduct() {
59 return product;
60 }
61
62 public void setProduct(Product product) {
63 this.product = product;
64 }
65
66 public String getProductId() {
67 return productId;
68 }
69
70 public void setProductId(String productId) {
71 this.productId = productId;
72 }
73
74 public int getSupplierId() {
75 return supplierId;
76 }
77
78 public void setSupplierId(int supplierId) {
79 this.supplierId = supplierId;
80 }
81
82 public double getListPrice() {
83 return listPrice;
84 }
85
86 public void setListPrice(double listPrice) {
87 this.listPrice = listPrice;
88 }
89
90 public double getUnitCost() {
91 return unitCost;
92 }
93
94 public void setUnitCost(double unitCost) {
95 this.unitCost = unitCost;
96 }
97
98 public String getStatus() {
99 return status;
100 }
101
102 public void setStatus(String status) {
103 this.status = status;
104 }
105
106 public String getAttribute1() {
107 return attribute1;
108 }
109
110 public void setAttribute1(String attribute1) {
111 this.attribute1 = attribute1;
112 }
113
114 public String getAttribute2() {
115 return attribute2;
116 }
117
118 public void setAttribute2(String attribute2) {
119 this.attribute2 = attribute2;
120 }
121
122 public String getAttribute3() {
123 return attribute3;
124 }
125
126 public void setAttribute3(String attribute3) {
127 this.attribute3 = attribute3;
128 }
129
130 public String getAttribute4() {
131 return attribute4;
132 }
133
134 public void setAttribute4(String attribute4) {
135 this.attribute4 = attribute4;
136 }
137
138 public String getAttribute5() {
139 return attribute5;
140 }
141
142 public void setAttribute5(String attribute5) {
143 this.attribute5 = attribute5;
144 }
145
146
147
148 public String toString() {
149 return "(" + getItemId().trim() + "-" + getProductId().trim() + ")";
150 }
151
152 }