KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > ibatis > jpetstore > domain > Category


1 package com.ibatis.jpetstore.domain;
2
3 import java.io.Serializable JavaDoc;
4
5
6 public class Category implements Serializable JavaDoc {
7
8   /* Private Fields */
9
10   private String JavaDoc categoryId;
11   private String JavaDoc name;
12   private String JavaDoc description;
13
14   /* JavaBeans Properties */
15
16   public String JavaDoc getCategoryId() {
17     return categoryId;
18   }
19
20   public void setCategoryId(String JavaDoc categoryId) {
21     this.categoryId = categoryId.trim();
22   }
23
24   public String JavaDoc getName() {
25     return name;
26   }
27
28   public void setName(String JavaDoc name) {
29     this.name = name;
30   }
31
32   public String JavaDoc getDescription() {
33     return description;
34   }
35
36   public void setDescription(String JavaDoc description) {
37     this.description = description;
38   }
39
40   /* Public Methods */
41
42   public String JavaDoc toString() {
43     return getCategoryId();
44   }
45
46 }
47
Popular Tags