KickJava   Java API By Example, From Geeks To Geeks.

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


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
15 import org.jboss.portlet.forums.model.Topic;
16 import org.jboss.portlet.forums.model.TopicWatch;
17 import org.jboss.portlet.forums.model.Poster;
18
19 /**
20  * Watchers of topics.
21  *
22  * @hibernate.joined-subclass
23  * table="jbp_forums_topicswatch"
24  *
25  * @hibernate.joined-subclass-key
26  * column="jbp_id"
27  *
28  * @author <a HREF="mailto:julien@jboss.org">Julien Viet </a>
29  * @author <a HREF="mailto:theute@jboss.org">Thomas Heute </a>
30  * @version $Revision: 1.3 $
31  */

32 public class TopicWatchImpl
33    extends WatchImpl
34    implements Serializable JavaDoc,
35               TopicWatch
36 {
37
38    private Topic topic;
39
40    /**
41     * Creates a new {@link TopicWatchImpl} object.
42     */

43    public TopicWatchImpl()
44    {
45    }
46
47    /**
48     * @hibernate.many-to-one
49     * column="jbp_topic_id"
50     * class="org.jboss.portlet.forums.impl.TopicImpl"
51     */

52    public Topic getTopic()
53    {
54       return topic;
55    }
56
57    /**
58     * DOCUMENT_ME
59     *
60     * @param topic DOCUMENT_ME
61     */

62    public void setTopic(Topic topic)
63    {
64       this.topic = topic;
65    }
66 }
Popular Tags