FileDocCategorySizeDatePackage
Category.javaAPI DocExample779Thu Dec 04 08:19:26 GMT 2003org.springframework.samples.jpetstore.domain

Category.java

package org.springframework.samples.jpetstore.domain;

import java.io.Serializable;


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 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 Methods */

  public String toString() {
    return getCategoryId();
  }

}