    1   /***
    2    * @(#)Category.java
    3    *
    4    * JFoxSOAF, Service-Oriented Application Framework
    5    *
    6    * Copyright(c) JFoxSOAF Team
    7    *
    8    * Licensed under the GNU LGPL, Version 2.1 (the "License");
    9    * you may not use this file except in compliance with the License.
    10   * You may obtain a copy of the License at
    11   *
    12   * http://www.gnu.org/copyleft/lesser.html
    13   *
    14   * Unless required by applicable law or agreed to in writing, software
    15   * distributed under the License is distributed on an "AS IS" BASIS,
    16   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    17   * See the License for the specific language governing permissions and
    18   * limitations under the License.
    19   *
    20   * For more information, please visit:
    21   * http://www.jfox.cn/confluence/display/JFoxSOAF/Home
    22   * http://www.huihoo.org/jfox/jfoxsoaf
    23   */
    24
    25  package org.huihoo.jfox.soaf.services.persistence;
    26
    27  /***
    28   * JUnit test case model for IbatisServiceImpl
    29   * {@link org.huihoo.jfox.soaf.services.persistence.Category).
    30   *
    31   * @author <a href="clinton.begin@ibatis.com">Clinton Begin </a>
    32   * @author <a href="mailto:founder_chen@yahoo.com">Peter Cheng </a>
    33   * @version $Revision: 1.4 $ $Date: 2005/01/17 14:11:36 $
    34   * @version Revision: 1.0
    35   */
    36
    37  import java.io.Serializable;
    38
    39  public class Category implements Serializable {
    40
    41      /* Private Fields */
    42
    43      private String categoryId;
    44
    45      private String name;
    46
    47      private String description;
    48
    49      /* JavaBeans Properties */
    50
    51      public String getCategoryId() {
    52          return categoryId;
    53      }
    54
    55      public void setCategoryId(String categoryId) {
    56          this.categoryId = categoryId.trim();
    57      }
    58
    59      public String getName() {
    60          return name;
    61      }
    62
    63      public void setName(String name) {
    64          this.name = name;
    65      }
    66
    67      public String getDescription() {
    68          return description;
    69      }
    70
    71      public void setDescription(String description) {
    72          this.description = description;
    73      }
    74
    75      /* Public Methods */
    76
    77      public String toString() {
    78          return getCategoryId();
    79      }
    80
    81  }