Cake.java 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. package space.anyi.entity;
  2. import java.io.Serializable;
  3. import java.math.BigDecimal;
  4. import java.util.Date;
  5. public class Cake implements Serializable {
  6. private Integer id;
  7. private Integer categoryId;
  8. private String name;
  9. private String description;
  10. private BigDecimal basePrice;
  11. private String mainImage;
  12. private String taste;
  13. private String layers;
  14. private String filling;
  15. private String style;
  16. private Integer isCustomizable;
  17. private Integer isNew;
  18. private Integer isHot;
  19. private Integer isDiscount;
  20. private BigDecimal discountPrice;
  21. private Integer stock;
  22. private String status;
  23. private Integer salesCount;
  24. private Date createTime;
  25. private Date updateTime;
  26. public Cake() {}
  27. public Integer getId() { return id; }
  28. public void setId(Integer id) { this.id = id; }
  29. public Integer getCategoryId() { return categoryId; }
  30. public void setCategoryId(Integer categoryId) { this.categoryId = categoryId; }
  31. public String getName() { return name; }
  32. public void setName(String name) { this.name = name; }
  33. public String getDescription() { return description; }
  34. public void setDescription(String description) { this.description = description; }
  35. public BigDecimal getBasePrice() { return basePrice; }
  36. public void setBasePrice(BigDecimal basePrice) { this.basePrice = basePrice; }
  37. public String getMainImage() { return mainImage; }
  38. public void setMainImage(String mainImage) { this.mainImage = mainImage; }
  39. public String getTaste() { return taste; }
  40. public void setTaste(String taste) { this.taste = taste; }
  41. public String getLayers() { return layers; }
  42. public void setLayers(String layers) { this.layers = layers; }
  43. public String getFilling() { return filling; }
  44. public void setFilling(String filling) { this.filling = filling; }
  45. public String getStyle() { return style; }
  46. public void setStyle(String style) { this.style = style; }
  47. public Integer getIsCustomizable() { return isCustomizable; }
  48. public void setIsCustomizable(Integer isCustomizable) { this.isCustomizable = isCustomizable; }
  49. public Integer getIsNew() { return isNew; }
  50. public void setIsNew(Integer isNew) { this.isNew = isNew; }
  51. public Integer getIsHot() { return isHot; }
  52. public void setIsHot(Integer isHot) { this.isHot = isHot; }
  53. public Integer getIsDiscount() { return isDiscount; }
  54. public void setIsDiscount(Integer isDiscount) { this.isDiscount = isDiscount; }
  55. public BigDecimal getDiscountPrice() { return discountPrice; }
  56. public void setDiscountPrice(BigDecimal discountPrice) { this.discountPrice = discountPrice; }
  57. public Integer getStock() { return stock; }
  58. public void setStock(Integer stock) { this.stock = stock; }
  59. public String getStatus() { return status; }
  60. public void setStatus(String status) { this.status = status; }
  61. public Integer getSalesCount() { return salesCount; }
  62. public void setSalesCount(Integer salesCount) { this.salesCount = salesCount; }
  63. public Date getCreateTime() { return createTime; }
  64. public void setCreateTime(Date createTime) { this.createTime = createTime; }
  65. public Date getUpdateTime() { return updateTime; }
  66. public void setUpdateTime(Date updateTime) { this.updateTime = updateTime; }
  67. @Override
  68. public String toString() {
  69. return "Cake{id=" + id + ", name='" + name + "', basePrice=" + basePrice + "}";
  70. }
  71. }