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