abractcategory.java

来自「struts+spring+hibernate例子」· Java 代码 · 共 112 行

JAVA
112
字号
package com.shop.data;

public class AbractCategory {
	/**
	 * 分类名称
	 */
	protected String name;

	/**
	 * 分类ID
	 */
	protected Integer id;

	/**
	 * 类型
	 */
	protected Short type;

	/**
	 * 分类图片的地址
	 */
	protected String photo;

	/**
	 * 父类id
	 */
	protected Integer pid;

	/**
	 * 该分类下的商品数
	 */
	protected Integer productnum;

	public Integer getProductnum() {
		return productnum;
	}

	public void setProductnum(Integer productnum) {
		this.productnum = productnum;
	}

	/**
	 * @roseuid 4908234603D8
	 */
	public AbractCategory() {

	}

	public AbractCategory(Integer id, String name) {
		this.id = id;
		this.name = name;
	}

	public AbractCategory(Integer id, String name, Short type) {
		super();
		this.name = name;
		this.id = id;
		this.type = type;
	}

	public AbractCategory(Integer id, String name, Integer productnum) {
		super();
		this.name = name;
		this.id = id;
		this.productnum = productnum;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPhoto() {
		return photo;
	}

	public void setPhoto(String photo) {
		this.photo = photo;
	}

	public Integer getPid() {
		return pid;
	}

	public void setPid(Integer pid) {
		this.pid = pid;
	}

	public Short getType() {
		return type;
	}

	public void setType(Short type) {
		this.type = type;
	}

	public String toString() {
		return this.id + "," + this.name + "," + this.productnum;
	}
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?