category.java
来自「使用EJB实现的网上商城」· Java 代码 · 共 70 行
JAVA
70 行
package com.jdon.estore.model;import java.util.*;import com.jdon.controller.model.Model;public class Category implements Model{ private int parentID; private int index; private String catId; private String name; private String description; private Collection products = new ArrayList(); public Category(){ } public Category(String catId, String name, String description){ this.catId = catId; this.name = name; this.description = description; } public int getParentID(){ return parentID; } public void setParentID(int parentID){ this.parentID = parentID; } public int getIndex(){ return index; } public void setIndex(int index){ this.index = index; } public String getCatId(){ return catId; } public void setCatId(String catId){ this.catId = catId; } public String getName(){ return name; } public void setName(String name){ this.name = name; } public String getDescription(){ return description; } public void setDescription(String description){ this.description = description; } public Collection getProducts(){ return products; } public void setProducts(Collection products){ this.products = products; }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?