首页>代码>Spring Boot+SpringMVC+Mybatis+jsp餐厅后台管理>/springboot_jsptest/src/main/java/com/zl/beans/Product.java
package com.zl.beans;
import java.util.List;
public class Product {
private Integer id;
private String pid;//商品编号
private String pname;//商品名称
private int fid;//所属种类
private double mprice;//市场价
private double vprice;//会员价
private int repertory;//商品库存
private String content;//商品详情
//关联属性,作为一方,差多方
private List<Product> chiledren;
//作为多方,查一方
private Product parent;
public Product() {
}
public int getRepertory() {
return repertory;
}
public void setRepertory(int repertory) {
this.repertory = repertory;
}
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getPid() {
return pid;
}
public void setPid(String pid) {
this.pid = pid;
}
public String getPname() {
return pname;
}
public void setPname(String pname) {
this.pname = pname;
}
public int getFid() {
return fid;
}
public void setFid(int fid) {
this.fid = fid;
}
public double getMprice() {
return mprice;
}
public void setMprice(double mprice) {
this.mprice = mprice;
}
public double getVprice() {
return vprice;
}
public void setVprice(double vprice) {
this.vprice = vprice;
}
public String getContent() {
return content;
}
public void setContent(String content) {
this.content = content;
}
public List<Product> getChiledren() {
return chiledren;
}
public void setChiledren(List<Product> chiledren) {
this.chiledren = chiledren;
}
public Product getParent() {
return parent;
}
public void setParent(Product parent) {
this.parent = parent;
}
@Override
public String toString() {
return "Product{" +
"id=" + id +
", pid='" + pid + '\'' +
", pname='" + pname + '\'' +
", fid=" + fid +
", mprice=" + mprice +
", vprice=" + vprice +
", repertory=" + repertory +
", content='" + content + '\'' +
", chiledren=" + chiledren +
", parent=" + parent +
'}';
}
}

最近下载
最近浏览