KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > portlet > forums > impl > CategoryImpl


1 /*****************************************
2  * *
3  * JBoss Portal: The OpenSource Portal *
4  * *
5  * Forums JBoss Portlet *
6  * *
7  * Distributable under LGPL license. *
8  * See terms of license at gnu.org. *
9  * *
10  *****************************************/

11 package org.jboss.portlet.forums.impl;
12
13 import java.io.Serializable JavaDoc;
14 import java.util.List JavaDoc;
15
16 import org.jboss.portlet.forums.model.Category;
17
18 /**
19  * Category of forums.
20  *
21  * @hibernate.class
22  * table="jbp_forums_categories"
23  *
24  * @author <a HREF="mailto:julien@jboss.org">Julien Viet </a>
25  * @author <a HREF="mailto:theute@jboss.org">Thomas Heute </a>
26  * @version $Revision: 1.5 $
27  */

28 public class CategoryImpl
29    implements Serializable JavaDoc,
30               Category
31 {
32    private List JavaDoc forums;
33    private int order;
34    private String JavaDoc title;
35    private Integer JavaDoc id;
36
37    /**
38     * Creates a new {@link CategoryImpl} object.
39     */

40    public CategoryImpl()
41    {
42    }
43
44    /**
45     * @hibernate.bag
46     * lazy="true"
47     * inverse="true"
48     * cascade="all"
49     * @hibernate.collection-key
50     * column="jbp_category_id"
51     * @hibernate.collection-one-to-many
52     * class="org.jboss.portlet.forums.impl.ForumImpl"
53     */

54    public List JavaDoc getForums()
55    {
56       return forums;
57    }
58
59    /**
60     * DOCUMENT_ME
61     *
62     * @param value DOCUMENT_ME
63     */

64    public void setForums(List JavaDoc value)
65    {
66       forums = value;
67    }
68
69    /**
70     * @hibernate.property
71     * column="jbp_order"
72     * unique="false"
73     * update="true"
74     */

75    public int getOrder()
76    {
77       return order;
78    }
79
80    /**
81     * DOCUMENT_ME
82     *
83     * @param order DOCUMENT_ME
84     */

85    public void setOrder(int order)
86    {
87       this.order = order;
88    }
89
90    /**
91     * @hibernate.property
92     * column="jbp_title"
93     * unique="false"
94     * update="true"
95     */

96    public String JavaDoc getTitle()
97    {
98       return title;
99    }
100
101    /**
102     * DOCUMENT_ME
103     *
104     * @param title DOCUMENT_ME
105     */

106    public void setTitle(String JavaDoc title)
107    {
108       this.title = title;
109    }
110
111    /**
112     * @hibernate.id
113     * column="jbp_id"
114     * generator-class="native"
115     */

116    public Integer JavaDoc getID()
117    {
118       return id;
119    }
120
121    private void setID(Integer JavaDoc id)
122    {
123       this.id = id;
124    }
125 }
Popular Tags