01: /*
02: * Copyright 2005-2006 the original author or authors.
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
05: * in compliance with the License. You may obtain a copy of the License at
06: *
07: * http://www.apache.org/licenses/LICENSE-2.0
08: *
09: * Unless required by applicable law or agreed to in writing, software distributed under the License
10: * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
11: * or implied. See the License for the specific language governing permissions and limitations under
12: * the License.
13: */
14:
15: package org.strecks.action.basic.impl;
16:
17: import java.io.Serializable;
18: import java.util.Date;
19:
20: /**
21: * @author Phil Zoio
22: */
23: public class HolidayBooking implements Serializable {
24:
25: private static final long serialVersionUID = 8230500555897220325L;
26:
27: private long entryId;
28:
29: private String title;
30:
31: private Date startDate;
32:
33: private int days;
34:
35: public Date getStartDate() {
36: return startDate;
37: }
38:
39: public void setStartDate(Date date) {
40: this .startDate = date;
41: }
42:
43: public int getDays() {
44: return days;
45: }
46:
47: public void setDays(int days) {
48: this .days = days;
49: }
50:
51: public long getEntryId() {
52: return entryId;
53: }
54:
55: public void setEntryId(long entryId) {
56: this .entryId = entryId;
57: }
58:
59: public String getTitle() {
60: return title;
61: }
62:
63: public void setTitle(String title) {
64: this .title = title;
65: }
66:
67: public boolean equals(Object obj) {
68: if (obj instanceof HolidayBooking) {
69: HolidayBooking booking = (HolidayBooking) obj;
70: return booking.getEntryId() == entryId;
71: } else
72: return false;
73: }
74:
75: }
|