View Javadoc
1   /*
2    *    Copyright 2009-2022 the original author or authors.
3    *
4    *    Licensed under the Apache License, Version 2.0 (the "License");
5    *    you may not use this file except in compliance with the License.
6    *    You may obtain a copy of the License at
7    *
8    *       https://www.apache.org/licenses/LICENSE-2.0
9    *
10   *    Unless required by applicable law or agreed to in writing, software
11   *    distributed under the License is distributed on an "AS IS" BASIS,
12   *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   *    See the License for the specific language governing permissions and
14   *    limitations under the License.
15   */
16  package org.apache.ibatis.domain.jpetstore;
17  
18  import java.io.Serializable;
19  import java.math.BigDecimal;
20  
21  public class Item implements Serializable {
22  
23    private static final long serialVersionUID = 1L;
24  
25    private String itemId;
26    private String productId;
27    private BigDecimal listPrice;
28    private BigDecimal unitCost;
29    private int supplierId;
30    private String status;
31    private String attribute1;
32    private String attribute2;
33    private String attribute3;
34    private String attribute4;
35    private String attribute5;
36    private Product product;
37    private int quantity;
38  
39    public String getItemId() {
40      return itemId;
41    }
42  
43    public void setItemId(String itemId) {
44      this.itemId = itemId.trim();
45    }
46  
47    public int getQuantity() {
48      return quantity;
49    }
50  
51    public void setQuantity(int quantity) {
52      this.quantity = quantity;
53    }
54  
55    public Product getProduct() {
56      return product;
57    }
58  
59    public void setProduct(Product product) {
60      this.product = product;
61    }
62  
63    public String getProductId() {
64      return productId;
65    }
66  
67    public void setProductId(String productId) {
68      this.productId = productId;
69    }
70  
71    public int getSupplierId() {
72      return supplierId;
73    }
74  
75    public void setSupplierId(int supplierId) {
76      this.supplierId = supplierId;
77    }
78  
79    public BigDecimal getListPrice() {
80      return listPrice;
81    }
82  
83    public void setListPrice(BigDecimal listPrice) {
84      this.listPrice = listPrice;
85    }
86  
87    public BigDecimal getUnitCost() {
88      return unitCost;
89    }
90  
91    public void setUnitCost(BigDecimal unitCost) {
92      this.unitCost = unitCost;
93    }
94  
95    public String getStatus() {
96      return status;
97    }
98  
99    public void setStatus(String status) {
100     this.status = status;
101   }
102 
103   public String getAttribute1() {
104     return attribute1;
105   }
106 
107   public void setAttribute1(String attribute1) {
108     this.attribute1 = attribute1;
109   }
110 
111   public String getAttribute2() {
112     return attribute2;
113   }
114 
115   public void setAttribute2(String attribute2) {
116     this.attribute2 = attribute2;
117   }
118 
119   public String getAttribute3() {
120     return attribute3;
121   }
122 
123   public void setAttribute3(String attribute3) {
124     this.attribute3 = attribute3;
125   }
126 
127   public String getAttribute4() {
128     return attribute4;
129   }
130 
131   public void setAttribute4(String attribute4) {
132     this.attribute4 = attribute4;
133   }
134 
135   public String getAttribute5() {
136     return attribute5;
137   }
138 
139   public void setAttribute5(String attribute5) {
140     this.attribute5 = attribute5;
141   }
142 
143   @Override
144   public String toString() {
145     return "(" + getItemId() + "-" + getProductId() + ")";
146   }
147 
148 }