Separate DB almost fixed
[RRRRHHHH_Code] / ruralHousesDB / 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         
18         
19         public Booking(int bN , Offer offer,Client client) {
20                 
21                 this.bookingNumber = bN;
22                 this.offer = offer;
23                 this.client=client;
24                 //Booking date is assigned to actual date
25                 this.bookingDate= new java.util.Date(System.currentTimeMillis());
26         }
27         
28
29         public Booking(int bN , Offer offer,Client client, Date bookDate) {
30                 this.bookingNumber = bN;
31                 this.offer = offer;
32                 this.client=client;
33                 this.bookingDate= bookDate;     }
34
35
36         public int getBookNumber() {
37                 return this.bookingNumber;
38         }
39
40         public void setOffer(Offer offer) {
41                 this.offer = offer;
42         }
43
44         public Offer getOffer() {
45                 return this.offer;
46         }
47
48
49         public void setBookDate(Date bookDate) {
50                 this.bookingDate = bookDate;
51         }
52
53         public Date getBookDate() {
54                 return this.bookingDate;
55         }
56         
57         public Client getClient() {
58                 return client;
59         }
60
61         public void setClient(Client client) {
62                 this.client = client;
63         }
64         
65 }