KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > ivata > groupware > business > calendar > event > vacation > VacationDO


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: VacationDO.java,v $
31  * Revision 1.2 2005/04/09 17:19:17 colinmacleod
32  * Changed copyright text to GPL v2 explicitly.
33  *
34  * Revision 1.1.1.1 2005/03/10 17:47:46 colinmacleod
35  * Restructured ivata op around Hibernate/PicoContainer.
36  * Renamed ivata groupware.
37  *
38  * Revision 1.1 2004/07/13 19:42:13 colinmacleod
39  * Moved project to POJOs from EJBs.
40  * Applied PicoContainer to services layer (replacing session EJBs).
41  * Applied Hibernate to persistence layer (replacing entity EJBs).
42  * -----------------------------------------------------------------------------
43  */

44 package com.ivata.groupware.business.calendar.event.vacation;
45
46 import com.ivata.groupware.business.calendar.event.EventDO;
47
48 /**
49  * <p>
50  * Represents a vacation or vacation request.
51  * </p>
52  *
53  * @author Colin MacLeod
54  * <a HREF='mailto:colin.macleod@ivata.com'>colin.macleod@ivata.com</a>
55  * @since Apr 4, 2004
56  * @version $Revision: 1.2 $
57  *
58  * @hibernate.joined-subclass
59  * table="vacation"
60  * @hibernate.joined-subclass-key
61  * column="calendar_event"
62  */

63 public class VacationDO extends EventDO {
64     /**
65      * <p>
66      * Indicates whether or not this vacation has been approved.
67      * </p>
68      */

69     private boolean approved = false;
70     /**
71      * <p>
72      * Indicates whether or not this vacation has been approved.
73      * </p>
74      *
75      * @return <code>true</code> if this vacation has been approved.
76      * @hibernate.property
77      */

78     public boolean isApproved() {
79         return approved;
80     }
81
82     /**
83      * <p>
84      * Indicates whether or not this vacation has been approved.
85      * </p>
86      *
87      * @param approved <code>true</code> if this vacation has been approved.
88      */

89     public final void setApproved(final boolean approved) {
90         this.approved = approved;
91     }
92 }
93
Popular Tags