1 package johnmammen.betterpetshop.bo; 2 3 import java.io.Serializable ; 4 import org.apache.commons.lang.builder.ToStringBuilder; 5 6 7 12 public class Productdetail implements Serializable { 13 14 15 private String productid; 16 17 18 private String name; 19 20 21 private String descn; 22 23 24 private org.apache.tapestry.pets.domain.model.IProduct product; 25 26 27 public Productdetail(String productid, String name, String descn, org.apache.tapestry.pets.domain.model.IProduct product) { 28 this.productid = productid; 29 this.name = name; 30 this.descn = descn; 31 this.product = product; 32 } 33 34 35 public Productdetail() { 36 } 37 38 39 public Productdetail(String productid, String name, String descn) { 40 this.productid = productid; 41 this.name = name; 42 this.descn = descn; 43 } 44 45 52 public String getProductid() { 53 return this.productid; 54 } 55 56 public void setProductid(String productid) { 57 this.productid = productid; 58 } 59 60 67 public String getName() { 68 return this.name; 69 } 70 71 public void setName(String name) { 72 this.name = name; 73 } 74 75 82 public String getDescn() { 83 return this.descn; 84 } 85 86 public void setDescn(String descn) { 87 this.descn = descn; 88 } 89 90 97 public org.apache.tapestry.pets.domain.model.IProduct getProduct() { 98 return this.product; 99 } 100 101 public void setProduct(org.apache.tapestry.pets.domain.model.IProduct product) { 102 this.product = product; 103 } 104 105 public String toString() { 106 return new ToStringBuilder(this) 107 .append("productid", getProductid()) 108 .toString(); 109 } 110 111 } 112 | Popular Tags |