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