category.java

来自「一个网上购物商城系统」· Java 代码 · 共 122 行

JAVA
122
字号
package tarena.entity;

import java.sql.Blob;
import java.util.HashSet;
import java.util.Set;

/**
 * Category generated by MyEclipse Persistence Tools
 */

@SuppressWarnings("serial")
public class Category implements java.io.Serializable {

	// Fields

	private Integer id;

	private String cname;

	private Integer parentid;

	private String description;

	private Blob photo;

	private Short ctype;

	private Set products = new HashSet(0);

	private Set normses = new HashSet(0);

	// Constructors

	/** default constructor */
	public Category() {
	}

	/** minimal constructor */
	public Category(String cname, Integer parentid) {
		this.cname = cname;
		this.parentid = parentid;
	}

	/** full constructor */
	public Category(String cname, Integer parentid, String description,
			Blob photo, Short ctype, Set products, Set normses) {
		this.cname = cname;
		this.parentid = parentid;
		this.description = description;
		this.photo = photo;
		this.ctype = ctype;
		this.products = products;
		this.normses = normses;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

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

	public String getCname() {
		return this.cname;
	}

	public void setCname(String cname) {
		this.cname = cname;
	}

	public Integer getParentid() {
		return this.parentid;
	}

	public void setParentid(Integer parentid) {
		this.parentid = parentid;
	}

	public String getDescription() {
		return this.description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Blob getPhoto() {
		return photo;
	}

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

	public Short getCtype() {
		return this.ctype;
	}

	public void setCtype(Short ctype) {
		this.ctype = ctype;
	}

	public Set getProducts() {
		return this.products;
	}

	public void setProducts(Set products) {
		this.products = products;
	}

	public Set getNormses() {
		return this.normses;
	}

	public void setNormses(Set normses) {
		this.normses = normses;
	}

}

⌨️ 快捷键说明

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