KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > springframework > samples > jpetstore > domain > Category


1 package org.springframework.samples.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() { return categoryId; }
17   public void setCategoryId(String JavaDoc categoryId) { this.categoryId = categoryId.trim(); }
18
19   public String JavaDoc getName() { return name; }
20   public void setName(String JavaDoc name) { this.name = name; }
21
22   public String JavaDoc getDescription() { return description; }
23   public void setDescription(String JavaDoc description) { this.description = description; }
24
25   /* Public Methods */
26
27   public String JavaDoc toString() {
28     return getCategoryId();
29   }
30
31 }
32
Popular Tags