categorysecondandthird.java

来自「struts+spring+hibernate例子」· Java 代码 · 共 31 行

JAVA
31
字号
package com.shop.data;

import java.io.Serializable;
import java.util.List;

public class CategorySecondAndThird implements Serializable{
	/** 二级分类 */
	private AbractCategory secondCategory;
	/** 二级分类下的所有三级分类 */
	private List<AbractCategory> thirdCategorys;
	
	public CategorySecondAndThird(AbractCategory secondCategory,List<AbractCategory> thirdCategorys) {
		this.secondCategory = secondCategory;
		this.thirdCategorys = thirdCategorys;
	}
	
	public AbractCategory getSecondCategory() {
		return secondCategory;
	}
	public void setSecondCategory(AbractCategory secondCategory) {
		this.secondCategory = secondCategory;
	}
	public List<AbractCategory> getThirdCategorys() {
		return thirdCategorys;
	}
	public void setThirdCategorys(List<AbractCategory> thirdCategorys) {
		this.thirdCategorys = thirdCategorys;
	}
	
}

⌨️ 快捷键说明

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