View Javadoc
1   /*
2    *    Copyright 2010-2026 the original author or authors.
3    *
4    *    Licensed under the Apache License, Version 2.0 (the "License");
5    *    you may not use this file except in compliance with the License.
6    *    You may obtain a copy of the License at
7    *
8    *       https://www.apache.org/licenses/LICENSE-2.0
9    *
10   *    Unless required by applicable law or agreed to in writing, software
11   *    distributed under the License is distributed on an "AS IS" BASIS,
12   *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   *    See the License for the specific language governing permissions and
14   *    limitations under the License.
15   */
16  package org.mybatis.jpetstore.domain;
17  
18  import java.io.Serializable;
19  
20  /**
21   * The Class Category.
22   */
23  public class Category implements Serializable {
24  
25    /** The serial version uid. */
26    private static final long serialVersionUID = 3992469837058393712L;
27  
28    /** The category id. */
29    private String categoryId;
30    /** The name. */
31    private String name;
32    /** The description. */
33    private String description;
34  
35    /**
36     * Gets the category id.
37     *
38     * @return the category id
39     */
40    public String getCategoryId() {
41      return categoryId;
42    }
43  
44    /**
45     * Sets the category id.
46     *
47     * @param categoryId
48     *          the category id
49     */
50    public void setCategoryId(String categoryId) {
51      this.categoryId = categoryId.trim();
52    }
53  
54    /**
55     * Gets the name.
56     *
57     * @return the name
58     */
59    public String getName() {
60      return name;
61    }
62  
63    /**
64     * Sets the name.
65     *
66     * @param name
67     *          the name
68     */
69    public void setName(String name) {
70      this.name = name;
71    }
72  
73    /**
74     * Gets the description.
75     *
76     * @return the description
77     */
78    public String getDescription() {
79      return description;
80    }
81  
82    /**
83     * Sets the description.
84     *
85     * @param description
86     *          the description
87     */
88    public void setDescription(String description) {
89      this.description = description;
90    }
91  
92    @Override
93    public String toString() {
94      return getCategoryId();
95    }
96  
97  }