01: package com.ibatis.jpetstore.domain;
02:
03: import java.io.Serializable;
04:
05: public class Product implements Serializable {
06:
07: /* Private Fields */
08:
09: private String productId;
10:
11: private String categoryId;
12:
13: private String name;
14:
15: private String description;
16:
17: /* JavaBeans Properties */
18:
19: public String getProductId() {
20: return productId;
21: }
22:
23: public void setProductId(String productId) {
24: this .productId = productId.trim();
25: }
26:
27: public String getCategoryId() {
28: return categoryId;
29: }
30:
31: public void setCategoryId(String categoryId) {
32: this .categoryId = categoryId;
33: }
34:
35: public String getName() {
36: return name;
37: }
38:
39: public void setName(String name) {
40: this .name = name;
41: }
42:
43: public String getDescription() {
44: return description;
45: }
46:
47: public void setDescription(String description) {
48: this .description = description;
49: }
50:
51: /* Public Methods */
52:
53: public String toString() {
54: return getName();
55: }
56:
57: }
|