KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > ivata > groupware > business > library > faq > FAQDO


1 /*
2  * Copyright (c) 2001 - 2005 ivata limited.
3  * All rights reserved.
4  * -----------------------------------------------------------------------------
5  * ivata groupware may be redistributed under the GNU General Public
6  * License as published by the Free Software Foundation;
7  * version 2 of the License.
8  *
9  * These programs are free software; you can redistribute them and/or
10  * modify them under the terms of the GNU General Public License
11  * as published by the Free Software Foundation; version 2 of the License.
12  *
13  * These programs are distributed in the hope that they will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16  *
17  * See the GNU General Public License in the file LICENSE.txt for more
18  * details.
19  *
20  * If you would like a copy of the GNU General Public License write to
21  *
22  * Free Software Foundation, Inc.
23  * 59 Temple Place - Suite 330
24  * Boston, MA 02111-1307, USA.
25  *
26  *
27  * To arrange commercial support and licensing, contact ivata at
28  * http://www.ivata.com/contact.jsp
29  * -----------------------------------------------------------------------------
30  * $Log: FAQDO.java,v $
31  * Revision 1.1 2005/04/26 15:21:53 colinmacleod
32  * Renamed Faq to FAQ.
33  *
34  * Revision 1.3 2005/04/10 20:09:44 colinmacleod
35  * Added new themes.
36  * Changed id type to String.
37  * Changed i tag to em and b tag to strong.
38  * Improved PicoContainerFactory with NanoContainer scripts.
39  *
40  * Revision 1.2 2005/04/09 17:19:45 colinmacleod
41  * Changed copyright text to GPL v2 explicitly.
42  *
43  * Revision 1.1.1.1 2005/03/10 17:51:59 colinmacleod
44  * Restructured ivata op around Hibernate/PicoContainer.
45  * Renamed ivata groupware.
46  *
47  * Revision 1.1 2004/07/13 19:47:28 colinmacleod
48  * Moved project to POJOs from EJBs.
49  * Applied PicoContainer to services layer (replacing session EJBs).
50  * Applied Hibernate to persistence layer (replacing entity EJBs).
51  *
52  * Revision 1.2 2004/03/21 21:16:29 colinmacleod
53  * Shortened name to ivata op.
54  *
55  * Revision 1.1.1.1 2004/01/27 20:58:38 colinmacleod
56  * Moved ivata openportal to SourceForge..
57  *
58  * Revision 1.5 2003/11/03 11:29:44 jano
59  * commiting library,
60  * tryinjg to fix deploying problem
61  *
62  * Revision 1.4 2003/10/28 13:16:14 jano
63  * commiting library,
64  * still fixing compile and building openGroupware project
65  *
66  * Revision 1.3 2003/10/15 14:23:29 jano
67  * converting to XDoclet
68  *
69  * Revision 1.2 2003/10/15 14:16:53 colin
70  * fixing for XDoclet
71  *
72  * Revision 1.4 2003/05/01 12:13:22 jano
73  * tidy up names of sequeneces
74  *
75  * Revision 1.3 2003/02/28 07:29:23 colin
76  * fixed code for creation
77  * added id dispenser
78  * moved CMRs to post create
79  *
80  * Revision 1.2 2003/02/25 14:38:13 colin
81  * implemented setModified methods on entity beans thro IvataEntityBean superclass
82  *
83  * Revision 1.1 2003/02/24 19:09:22 colin
84  * moved to business
85  * -----------------------------------------------------------------------------
86  */

87 package com.ivata.groupware.business.library.faq;
88
89 import com.ivata.groupware.business.library.faq.category.FAQCategoryDO;
90 import com.ivata.groupware.container.persistence.BaseDO;
91
92
93 /**
94  * <p>Represents a single question/answer pair as stored in frequently asked
95  * question library items.</p>
96  *
97  * @hibernate.class
98  * table="library_faq"
99  */

100 public class FAQDO extends BaseDO {
101
102     /**
103      * <p>The answer to the question.</p>
104      */

105     private String JavaDoc answer;
106
107     /**
108      * <p>The category which contains this question/answer.</p>
109      */

110     private FAQCategoryDO fAQCategory;
111     /**
112      * <p>The question.</p>
113      */

114     private String JavaDoc question;
115     /**
116      * <p>Get the answer to the question.</p>
117      *
118      * @return the answer to the question.
119      * @hibernate.property
120      */

121     public final String JavaDoc getAnswer() {
122        return answer;
123     }
124
125     /**
126      * <p>Get the category which contains this question/answer.</p>
127      *
128      * @return the category which contains this question/answer.
129      * @hibernate.many-to-one
130      * column="library_faq_category"
131      */

132     public final FAQCategoryDO getFAQCategory() {
133         return fAQCategory;
134     }
135     /**
136      * <p>Get the question.</p>
137      *
138      * @return the question being asked.
139      * @hibernate.property
140      */

141     public final String JavaDoc getQuestion() {
142         return question;
143     }
144
145     /**
146      * <p>Set the answer to the question.</p>
147      *
148      * @param answer the answer to the question.
149      */

150     public final void setAnswer(final String JavaDoc answer) {
151         this.answer = answer;
152     }
153
154     /**
155      * <p>Set the category which contains this question/answer.</p>
156      *
157      * @param faqCategory the category which contains this question/answer.
158      */

159     public final void setFAQCategory(final FAQCategoryDO faqCategory) {
160         this.fAQCategory = faqCategory;
161     }
162
163     /**
164      * <p>Set the question.</p>
165      *
166      * @param question the question being asked.
167      */

168     public final void setQuestion(final String JavaDoc question) {
169         this.question = question;
170     }
171 }
172
Popular Tags