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