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