1   package org.org.usurper.jpetstoredomain;
2   
3   import java.io.Serializable;
4   
5   public class Product implements Serializable {
6   
7       /* Private Fields */
8   
9       /**
10       * 
11       */
12      private static final long serialVersionUID = 6209724975786529097L;
13  
14      private String productId;
15  
16      private String categoryId;
17  
18      private String name;
19  
20      private String description;
21  
22      /* JavaBeans Properties */
23  
24      public String getProductId() {
25          return productId;
26      }
27  
28      public void setProductId(String productId) {
29          this.productId = productId.trim();
30      }
31  
32      public String getCategoryId() {
33          return categoryId;
34      }
35  
36      public void setCategoryId(String categoryId) {
37          this.categoryId = categoryId;
38      }
39  
40      public String getName() {
41          return name;
42      }
43  
44      public void setName(String name) {
45          this.name = name;
46      }
47  
48      public String getDescription() {
49          return description;
50      }
51  
52      public void setDescription(String description) {
53          this.description = description;
54      }
55  
56      /* Public Methods */
57  
58      public String toString() {
59          return getName();
60      }
61  
62  }