@@ -0,0 +1,2190 @@
+package BuilderPattern;%0A%0Aimport java.io.Serializable;%0Aimport java.util.Date;%0A%0Apublic class Reservation implements Serializable%7B%0A    %0A    private int reservationId;%0A    static private int lastReservationId;%0A    private int custId;%0A    private String destination;%0A    private Date departDate;%0A    private Date returnDate;%0A    private double totalSum;%0A    private boolean statusPayment;%0A%0A    public int getReservationId() %7B%0A        return reservationId;%0A    %7D%0A%0A    public void setReservationId() %7B%0A        this.reservationId = lastReservationId+1;%0A        this.lastReservationId=this.reservationId;%0A    %7D%0A%0A    public int getLastReservationId() %7B%0A        return lastReservationId;%0A    %7D%0A%0A    public void setLastReservationId(int lastReservationId) %7B%0A        this.lastReservationId = lastReservationId;%0A    %7D%0A%0A    public int getCustId() %7B%0A        return custId;%0A    %7D%0A%0A    public void setCustId(int custId) %7B%0A        this.custId = custId;%0A    %7D%0A%0A    public String getDestination() %7B%0A        return destination;%0A    %7D%0A%0A    public void setDestination(String destination) %7B%0A        this.destination = destination;%0A    %7D%0A%0A    public Date getDepartDate() %7B%0A        return departDate;%0A    %7D%0A%0A    public void setDepartDate(Date departDate) %7B%0A        this.departDate = departDate;%0A    %7D%0A%0A    public Date getReturnDate() %7B%0A        return returnDate;%0A    %7D%0A%0A    public void setReturnDate(Date returnDate) %7B%0A        this.returnDate = returnDate;%0A    %7D%0A%0A    public double getTotalSum() %7B%0A        return totalSum;%0A    %7D%0A%0A    public void setTotalSum(double totalSum) %7B%0A        this.totalSum = totalSum;%0A    %7D%0A%0A    public boolean isStatusPayment() %7B%0A        return statusPayment;%0A    %7D%0A%0A    public void setStatusPayment(boolean statusPayment) %7B%0A        this.statusPayment = statusPayment;%0A    %7D%0A    %0A    %0A    public Reservation(int customerId, String destination, Date depart, Date returnDate, double totalSum, boolean statusPayment)%0A    %7B%0A        this.setReservationId();%0A        this.custId=customerId;%0A        this.destination=destination;%0A        this.departDate=depart;%0A        this.returnDate=returnDate;%0A        this.totalSum=totalSum;   %0A        this.statusPayment=statusPayment;%0A        %0A    %7D%0A    %0A%7D%0A

Create Reservation.java