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

📄 category.java

📁 网上商店 新增功能: 1
💻 JAVA
字号:
package netstore.businessobjects;

import java.io.Serializable;
import java.util.Set;
import java.util.HashSet;
import org.apache.commons.lang.builder.ToStringBuilder;


public class Category extends BaseBusinessObject implements Serializable {

	//名称
    private String name;
    //父目录
    private Category parentCategory;
    //产品s
    private Set items=new HashSet();
    //子目录
    private Set childCategories=new HashSet();

    public Category(String name, Integer version, netstore.businessobjects.Category parentCategory, Set items, Set childCategories) {
        super(version);
        this.name = name;
        this.parentCategory = parentCategory;
        this.items = items;
        this.childCategories = childCategories;
    }

    public Category() {
    }

    public Category(Set items, Set childCategories) {
        this.items = items;
        this.childCategories = childCategories;
    }

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

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

    public Category getParentCategory() {
        return this.parentCategory;
    }

    public void setParentCategory(Category parentCategory) {
        this.parentCategory = parentCategory;
    }

    public Set getItems() {
        return this.items;
    }

    public void setItems(Set items) {
        this.items = items;
    }

    public Set getChildCategories() {
        return this.childCategories;
    }

    public void setChildCategories(Set childCategories) {
        this.childCategories = childCategories;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("id", getId())
            .toString();
    }

}

⌨️ 快捷键说明

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