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