3 import java.io.Serializable;
6 public class Booking implements Serializable {
11 private static final long serialVersionUID = 1L;
12 private int bookingNumber;
13 private Date bookingDate;
14 private Client client;
17 public Booking(int bN, Offer offer, Client client, Date date) {
18 this.bookingNumber = bN;
21 // Booking date is assigned to actual date
22 this.bookingDate = date;
25 public Booking(int bN, Offer offer, Client client) {
27 this.bookingNumber = bN;
30 // Booking date is assigned to actual date
31 this.bookingDate = new java.util.Date(System.currentTimeMillis());
34 public void imprimete() {
35 System.out.println(bookingNumber);
36 System.out.println(bookingDate);
37 System.out.println(client.toString());
38 System.out.println(offer);
41 public int getBookNumber() {
42 return this.bookingNumber;
45 public void setOffer(Offer offer) {
49 public Offer getOffer() {
53 public float getPrice() {
54 return this.offer.getPrice();
57 public void setBookDate(Date bookDate) {
58 this.bookingDate = bookDate;
61 public Date getBookDate() {
62 return this.bookingDate;
65 public Client getClient() {
69 public void setClient(Client client) {