- 1 package bean;
- 2 3 public class Category {
- 4 private int cateId;
- 5 private String cateName;
- 6 public int getCateId() {
- 7
- return this.cateId;
- 8
- }
- 9 public void setCateId(int id) {
- 10 this.cateId = id;
- 11
- }
- 12 public String getCateName() {
- 13
- return this.cateName;
- 14
- }
- 15 public void setCateName(String cateName) {
- 16 this.cateName = cateName;
- 17 18
- }
- 19 20@Override 21 22 public String toString() {
- 23 24
- return " 商品类型 id=" + this.cateId + ",name=" + this.cateName;
- 25 26
- }
- 27 28
- }
来源: