?? category.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;
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 + -