📄 category.java
字号:
package com.ewuxi.champion.persistence.vo;
import java.io.*;
public class Category implements Serializable {
/* Private Fields */
private String categoryId;
private String name;
private String description;
/* JavaBeans Properties */
public String getCategoryId() {
return categoryId;
}
public void setCategoryId(String categoryId) {
this.categoryId = categoryId.trim();
}
public boolean equals(Object o) {
if (this == o)
return true;
if (!(o instanceof Category))
return false;
final Category category = (Category) o;
if (categoryId != null
? !categoryId.equals(category.categoryId)
: category.categoryId != null)
return false;
if (description != null
? !description.equals(category.description)
: category.description != null)
return false;
if (name != null ? !name.equals(category.name) : category.name != null)
return false;
return true;
}
public int hashCode() {
int result;
result = (categoryId != null ? categoryId.hashCode() : 0);
result = 29 * result + (name != null ? name.hashCode() : 0);
result =
29 * result + (description != null ? description.hashCode() : 0);
return result;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public String toString() {
return this.categoryId+"--"+this.name+"--"+this.description;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -