The bug found in the presentation that we forgot to review has been fixed
[RRRRHHHH_Code] / ruralHouses / src / domain / Booking.java
1 package domain;
2
3 import java.io.Serializable;
4 import java.util.Date;
5
6 public class Booking implements Serializable {
7
8         /**
9          * 
10          */
11         private static final long serialVersionUID = 1L;
12         private int bookingNumber;
13         private Date bookingDate;
14         private Client client;
15         private Offer offer;
16
17         public Booking(int bN, Offer offer, Client client) {
18
19                 this.bookingNumber = bN;
20                 this.offer = offer;
21                 this.client = client;
22                 // Booking date is assigned to actual date
23                 this.bookingDate = new java.util.Date(System.currentTimeMillis());
24         }
25
26         public Booking(int bN, Offer offer, Client client, Date bookDate) {
27                 this.bookingNumber = bN;
28                 this.offer = offer;
29                 this.client = client;
30                 this.bookingDate = bookDate;
31         }
32
33         public int getBookNumber() {
34                 return this.bookingNumber;
35         }
36
37         public void setOffer(Offer offer) {
38                 this.offer = offer;
39         }
40
41         public Offer getOffer() {
42                 return this.offer;
43         }
44
45         public void setBookDate(Date bookDate) {
46                 this.bookingDate = bookDate;
47         }
48
49         public Date getBookDate() {
50                 return this.bookingDate;
51         }
52
53         public Client getClient() {
54                 return client;
55         }
56
57         public void setClient(Client client) {
58                 this.client = client;
59         }
60
61 }