bookcategory.java
来自「用STRUTS ,HIBERNATE, SPRING 三种框架整合做的实战项目」· Java 代码 · 共 78 行
JAVA
78 行
package com.ghy.data.book;
import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;
public class BookCategory implements Serializable
{
private String id ;
private String categoryName ;
private BookCategory parentCategory ;
private Set childCategories = new HashSet();
private Set books = new HashSet();
/**
* @return the id
*/
public String getId() {
return id;
}
/**
* @param id the id to set
*/
public void setId(String id) {
this.id = id;
}
/**
* @return the categoryName
*/
public String getCategoryName() {
return categoryName;
}
/**
* @param categoryName the categoryName to set
*/
public void setCategoryName(String categoryName) {
this.categoryName = categoryName;
}
/**
* @return the parentCategory
*/
public BookCategory getParentCategory() {
return parentCategory;
}
/**
* @param parentCategory the parentCategory to set
*/
public void setParentCategory(BookCategory parentCategory) {
this.parentCategory = parentCategory;
}
/**
* @return the childCategories
*/
public Set getChildCategories() {
return childCategories;
}
/**
* @param childCategories the childCategories to set
*/
public void setChildCategories(Set childCategories) {
this.childCategories = childCategories;
}
/**
* @return the books
*/
public Set getBooks() {
return books;
}
/**
* @param books the books to set
*/
public void setBooks(Set books) {
this.books = books;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?