⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 category.java

📁 本系统是网上购物的详细代码
💻 JAVA
字号:
package cn.com.tarena.ecport.pojo;

import java.util.HashSet;
import java.util.Set;

/**
 * <pre>
 * 商品分类Pojo
 * 此Pojo映射数据库中的Category表
 * </pre>
 * 
 * @author zhouyu 2008-1-16
 */
public class Category extends BasePojo {

	private static final long serialVersionUID = -6139342393066052700L;
	
	private Long categoryid;
	private String name;
	private String description;
	private Set<Product> products = new HashSet<Product>(0);
	
    public Category() {
    }

	/** minimal constructor */
    public Category(String name) {
        this.name = name;
    }
    
    /** full constructor */
    public Category(String name, String description, Set<Product> products) {
        this.name = name;
        this.description = description;
        this.products = products;
    }
    
 // Property accessors

    public Long getCategoryid() {
        return this.categoryid;
    }
    
    public void setCategoryid(Long categoryid) {
        this.categoryid = categoryid;
    }

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

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

    public Set<Product> getProducts() {
        return this.products;
    }
    
    public void setProducts(Set<Product> products) {
        this.products = products;
    }
	/***************************************************************************
	 * toString method
	 */
	public String toString() {
		return "["+name+","+description+"]";
	}
}

⌨️ 快捷键说明

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