📄 category.java
字号:
package tarena.entity;
import java.sql.Blob;
import java.util.HashSet;
import java.util.Set;
/**
* Category entity.
*
* @author MyEclipse Persistence Tools
*/
public class Category implements java.io.Serializable {
// Fields
private Integer id;
private String cname;
private Integer parentid;
private String description;
private Blob photo;
private Short ctype;
private Set products = new HashSet(0);
private Set normses = new HashSet(0);
// Constructors
/** default constructor */
public Category() {
}
/** minimal constructor */
public Category(String cname, Integer parentid) {
this.cname = cname;
this.parentid = parentid;
}
/** full constructor */
public Category(String cname, Integer parentid, String description,
Blob photo, Short ctype, Set products, Set normses) {
this.cname = cname;
this.parentid = parentid;
this.description = description;
this.photo = photo;
this.ctype = ctype;
this.products = products;
this.normses = normses;
}
// Property accessors
public Integer getId() {
return this.id;
}
public void setId(Integer id) {
this.id = id;
}
public String getCname() {
return this.cname;
}
public void setCname(String cname) {
this.cname = cname;
}
public Integer getParentid() {
return this.parentid;
}
public void setParentid(Integer parentid) {
this.parentid = parentid;
}
public String getDescription() {
return this.description;
}
public void setDescription(String description) {
this.description = description;
}
public Blob getPhoto() {
return this.photo;
}
public void setPhoto(Blob photo) {
this.photo = photo;
}
public Short getCtype() {
return this.ctype;
}
public void setCtype(Short ctype) {
this.ctype = ctype;
}
public Set getProducts() {
return this.products;
}
public void setProducts(Set products) {
this.products = products;
}
public Set getNormses() {
return this.normses;
}
public void setNormses(Set normses) {
this.normses = normses;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -