KickJava   Java API By Example, From Geeks To Geeks.

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


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

9 package org.jboss.portlet.forums.impl;
10
11 import org.jboss.portlet.forums.model.Watch;
12 import org.jboss.portlet.forums.model.Poster;
13
14 import java.io.Serializable JavaDoc;
15
16 /**
17  * Watchers for email notifications.
18  *
19  * @hibernate.class
20  * table="jbp_forums_watch"
21  *
22  * @author <a HREF="mailto:julien@jboss.org">Julien Viet</a>
23  * @version $Revision: 1.1 $
24  */

25 public class WatchImpl implements Serializable JavaDoc, Watch
26 {
27
28    /** . */
29    private Integer JavaDoc id;
30
31    /** . */
32    private int mode;
33
34    /** . */
35    private Poster poster;
36
37    /**
38     * @hibernate.id
39     * column="jbp_id"
40     * generator-class="native"
41     */

42    public Integer JavaDoc getID()
43    {
44       return id;
45    }
46
47    /**
48     * Called by hibernate only.
49     */

50    private void setID(Integer JavaDoc id)
51    {
52       this.id = id;
53    }
54
55    /**
56     * @hibernate.many-to-one
57     * column="jbp_poster_id"
58     * class="org.jboss.portlet.forums.impl.PosterImpl"
59     */

60    public Poster getPoster()
61    {
62       return poster;
63    }
64
65    public void setPoster(Poster poster)
66    {
67       this.poster = poster;
68    }
69
70    /**
71     * @hibernate.property
72     * column="jbp_mode"
73     * unique="false"
74     * update="true"
75     */

76    public int getMode()
77    {
78       return mode;
79    }
80
81    public void setMode(int mode)
82    {
83       this.mode = mode;
84    }
85 }
86
Popular Tags