Written questions about the project properties should pay serious attention to the

Creative Commons License Copyright: Attribution, allow others to create paper-based, and must distribute paper (based on the original license agreement with the same license Creative Commons )

Such so-so pay attention to the details of writing attributes, attribute query or injection can cause failure.

public class Goods {
	
	**private Integer goodsId;**
	private String goodsName;
	private String goodsType;
	private Double goodsPrice;
	private Integer goodsCount;
	
	
	public Goods() {
	}
	
	public Goods(Integer id, String goodsName, String goodsType, Double goodsPrice, Integer goodsCount) {
		super();
		this.goodsId = id;
		this.goodsName = goodsName;
		this.goodsType = goodsType;
		this.goodsPrice = goodsPrice;
		this.goodsCount = goodsCount;
	}
	
	@Override
	public String toString() {
		return "Goods [id=" + goodsId + ", goodsName=" + goodsName + ", goodsType=" + goodsType + ", goodsPrice="
				+ goodsPrice + ", goodsCount=" + goodsCount + "]";
	}
	
	**public Integer getId() {
		return goodsId;
	}
	public void setId(Integer id) {
		this.goodsId = id;
	}**
	public String getGoodsName() {
		return goodsName;
	}
	public void setGoodsName(String goodsName) {
		this.goodsName = goodsName;
	}
	public String getGoodsType() {
		return goodsType;
	}
	public void setGoodsType(String goodsType) {
		this.goodsType = goodsType;
	}
	public Double getGoodsPrice() {
		return goodsPrice;
	}
	public void setGoodsPrice(Double goodsPrice) {
		this.goodsPrice = goodsPrice;
	}
	public Integer getGoodsCount() {
		return goodsCount;
	}
	public void setGoodsCount(Integer goodsCount) {
		this.goodsCount = goodsCount;
	}	

Guess you like

Origin blog.csdn.net/weixin_40358672/article/details/94425331