1 package johnmammen.betterpetshop.bo; 2 3 import java.io.Serializable ; 4 import org.apache.commons.lang.builder.ToStringBuilder; 5 import org.apache.tapestry.pets.domain.model.*; 6 7 8 13 public class Product implements Serializable , IProduct { 14 15 16 private String productid; 17 18 19 private String image; 20 21 22 private johnmammen.betterpetshop.bo.Productdetail productdetail; 23 24 25 private johnmammen.betterpetshop.bo.Categorydetail categorydetail; 26 27 28 public Product(String productid, String image, johnmammen.betterpetshop.bo.Productdetail productdetail, johnmammen.betterpetshop.bo.Categorydetail categorydetail) { 29 this.productid = productid; 30 this.image = image; 31 this.productdetail = productdetail; 32 this.categorydetail = categorydetail; 33 } 34 35 36 public Product() { 37 } 38 39 40 public Product(String productid, johnmammen.betterpetshop.bo.Categorydetail categorydetail) { 41 this.productid = productid; 42 this.categorydetail = categorydetail; 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 66 public String getImage() { 67 return this.image; 68 } 69 70 public void setImage(String image) { 71 this.image = image; 72 } 73 74 79 public johnmammen.betterpetshop.bo.Productdetail getProductdetail() { 80 return this.productdetail; 81 } 82 83 public void setProductdetail(johnmammen.betterpetshop.bo.Productdetail productdetail) { 84 this.productdetail = productdetail; 85 } 86 87 93 public johnmammen.betterpetshop.bo.Categorydetail getCategorydetail() { 94 return this.categorydetail; 95 } 96 97 public void setCategorydetail(johnmammen.betterpetshop.bo.Categorydetail categorydetail) { 98 this.categorydetail = categorydetail; 99 } 100 101 public String toString() { 102 return new ToStringBuilder(this) 103 .append("productid", getProductid()) 104 .toString(); 105 } 106 107 } 108 | Popular Tags |