category.java

来自「基于WEB的商品管理系统」· Java 代码 · 共 57 行

JAVA
57
字号
/*
 * Category.java
 *
 * Created on 2007年10月25日, 下午3:18
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package org.me.product;

import java.io.*;

/**
 *
 * @author Administrator
 */
public class Category implements Serializable{
    
    /** Creates a new instance of Category */
  /* 私有字段 */

  private String categoryId;
  private String name;
  private String description;

  /* JavaBean属性访问方法 */

  public String getCategoryId() { 
      return categoryId;
  }
  public void setCategoryId(String categoryId) { 
      this.categoryId = categoryId.trim();
  }

  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 getCategoryId();
  }

}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?