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 * @author Eduardo Macarron
24 */
25 public class Category implements Serializable {
26
27 /** The serial version uid. */
28 private static final long serialVersionUID = 3992469837058393712L;
29
30 /** The category id. */
31 private String categoryId;
32 /** The name. */
33 private String name;
34 /** The description. */
35 private String description;
36
37 /**
38 * Gets the category id.
39 *
40 * @return the category id
41 */
42 public String getCategoryId() {
43 return categoryId;
44 }
45
46 /**
47 * Sets the category id.
48 *
49 * @param categoryId
50 * the category id
51 */
52 public void setCategoryId(String categoryId) {
53 this.categoryId = categoryId.trim();
54 }
55
56 /**
57 * Gets the name.
58 *
59 * @return the name
60 */
61 public String getName() {
62 return name;
63 }
64
65 /**
66 * Sets the name.
67 *
68 * @param name
69 * the name
70 */
71 public void setName(String name) {
72 this.name = name;
73 }
74
75 /**
76 * Gets the description.
77 *
78 * @return the description
79 */
80 public String getDescription() {
81 return description;
82 }
83
84 /**
85 * Sets the description.
86 *
87 * @param description
88 * the description
89 */
90 public void setDescription(String description) {
91 this.description = description;
92 }
93
94 @Override
95 public String toString() {
96 return getCategoryId();
97 }
98
99 }