Git Repository Public Repository

RRRRHHHH_Code

URLs

Copy to Clipboard

Diff Revisions ccac99 ... vs 076d76 ... for ruralHouses/src/domain/Booking.java

Diff revisions: vs.
  @@ -3,7 +3,7 @@
3 3 import java.io.Serializable;
4 4 import java.util.Date;
5 5
6 - public class Booking implements Serializable {
6 + public class Booking implements Serializable {
7 7
8 8 /**
9 9 *
  @@ -13,25 +13,22 @@
13 13 private Date bookingDate;
14 14 private Client client;
15 15 private Offer offer;
16 -
17 -
18 -
19 - public Booking(int bN , Offer offer,Client client) {
20 -
16 +
17 + public Booking(int bN, Offer offer, Client client) {
18 +
21 19 this.bookingNumber = bN;
22 20 this.offer = offer;
23 - this.client=client;
24 - //Booking date is assigned to actual date
25 - this.bookingDate= new java.util.Date(System.currentTimeMillis());
21 + this.client = client;
22 + // Booking date is assigned to actual date
23 + this.bookingDate = new java.util.Date(System.currentTimeMillis());
26 24 }
27 -
28 25
29 - public Booking(int bN , Offer offer,Client client, Date bookDate) {
26 + public Booking(int bN, Offer offer, Client client, Date bookDate) {
30 27 this.bookingNumber = bN;
31 28 this.offer = offer;
32 - this.client=client;
33 - this.bookingDate= bookDate; }
34 -
29 + this.client = client;
30 + this.bookingDate = bookDate;
31 + }
35 32
36 33 public int getBookNumber() {
37 34 return this.bookingNumber;
  @@ -45,7 +42,6 @@
45 42 return this.offer;
46 43 }
47 44
48 -
49 45 public void setBookDate(Date bookDate) {
50 46 this.bookingDate = bookDate;
51 47 }
  @@ -53,7 +49,7 @@
53 49 public Date getBookDate() {
54 50 return this.bookingDate;
55 51 }
56 -
52 +
57 53 public Client getClient() {
58 54 return client;
59 55 }
  @@ -61,5 +57,5 @@
61 57 public void setClient(Client client) {
62 58 this.client = client;
63 59 }
64 -
60 +
65 61 }