View Javadoc

1   /*
2    * Copyright 2004 Carlos Sanchez.
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    *      http://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 net.sf.oness.inventory.model.category.bo;
17  
18  import net.sf.oness.common.model.bo.AbstractBusinessObject;
19  
20  /***
21   * @hibernate.class table="category"
22   *  
23   * @author Carlos Sanchez
24   * @version $Revision: 1.2 $
25   */
26  public class Category extends AbstractBusinessObject {
27  
28      private Category parent;
29  
30      private String name;
31  
32      /***
33       * @param parent
34       *            The parent to set.
35       */
36      public void setParent(Category parent) {
37          this.parent = parent;
38      }
39  
40      /***
41       * @hibernate.many-to-one
42       *  
43       * @return Returns the parent.
44       */
45      public Category getParent() {
46          return parent;
47      }
48  
49      /***
50       * @param name
51       *            The name to set.
52       */
53      public void setName(String name) {
54          this.name = name;
55      }
56  
57      /***
58       * @hibernate.property
59       *  
60       * @return Returns the name.
61       */
62      public String getName() {
63          return name;
64      }
65  
66  }