📄 category.java
字号:
package cn.hxex.library.model;
import java.util.Set;
/**
* 商品分类实体对象
*
* @author galaxy
*
*/
public class Category
{
// 主键
private String id;
// 分类名
private String name;
// 描述
private String description;
// 拥有的商品
private Set products;
/**
* Default constructor.
*/
public Category()
{
}
public String getId()
{
return this.id;
}
public void setId(String newId)
{
this.id = newId;
}
public String getName()
{
return this.name;
}
public void setName(String newName)
{
this.name = newName;
}
public String getDescription()
{
return this.description;
}
public void setDescription(String newDescription)
{
this.description = newDescription;
}
/**
* @return Returns the products.
*/
public Set getProducts()
{
return products;
}
/**
* @param products The products to set.
*/
public void setProducts(Set products)
{
this.products = products;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -