1
2
3
4 package org.flowfuse.holiday.model;
5
6 import org.apache.commons.logging.Log;
7 import org.apache.commons.logging.LogFactory;
8 import org.flowfuse.base.model.user.User;
9
10 import java.util.Date;
11
12 /***
13 * An ApplicationForLeave represents a request made by a user to
14 * be processed by the workflow system.
15 *
16 * @author <a href="stefan@flowfuse.org">Stefan Kleineikenscheidt</a>,
17 * Flowfuse.org
18 * @version $Id: HolidayApplication.java,v 1.2 2006/04/17 12:18:45 skleinei Exp $
19 */
20 public class HolidayApplication {
21
22
23 public final static String rcsid = "$Id: HolidayApplication.java,v 1.2 2006/04/17 12:18:45 skleinei Exp $";
24
25
26 protected final Log logger = LogFactory.getLog(this.getClass());
27
28 User employee = null;
29 Date startDate = null;
30 Date endDate = null;
31
32 /***
33 * @hibernate.many-to-one cascade="save-update"
34 * column="USER_ID" class="org.flowfuse.base.model.user.User"
35 * not-null="true"
36 */
37 public User getEmployee() {
38 return employee;
39 }
40
41 public void setEmployee(User employee) {
42 this.employee = employee;
43 }
44
45 /***
46 * @hibernate.property name="startDate" type="timestamp"
47 * column="WORKFLOWITEM_STARTDATE"
48 */
49 public Date getStartDate() {
50 return startDate;
51 }
52
53 public void setStartDate(Date startDate) {
54 this.startDate = startDate;
55 }
56
57 /***
58 * @hibernate.property name="endDate" type="timestamp"
59 * column="WORKFLOWITEM_ENDDATE"
60 */
61 public Date getEndDate() {
62 return endDate;
63 }
64
65 public void setEndDate(Date endDate) {
66 this.endDate = endDate;
67 }
68
69 }
70
71