1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package com.ibatis.jpetstore.domain;
17
18 import java.io.Serializable;
19
20
21 public class Product implements Serializable {
22
23
24
25 private String productId;
26 private String categoryId;
27 private String name;
28 private String imagePath;
29 private String description;
30
31
32
33 public String getProductId() {
34 return productId;
35 }
36
37 public void setProductId(String productId) {
38 this.productId = productId.trim();
39 }
40
41 public String getCategoryId() {
42 return categoryId;
43 }
44
45 public void setCategoryId(String categoryId) {
46 this.categoryId = categoryId;
47 }
48
49 public String getName() {
50 return name;
51 }
52
53 public void setName(String name) {
54 this.name = name;
55 }
56
57 public String getImagePath() {
58 return imagePath;
59 }
60
61 public void setImagePath(String imagePath) {
62 this.imagePath = imagePath;
63 }
64
65 public String getDescription() {
66 return description;
67 }
68
69 public void setDescription(String description) {
70 this.description = description;
71 }
72
73
74
75 public String toString() {
76 return getName();
77 }
78
79 }