Username is saved hashed and password hashed and salted
[RRRRHHHH_Code] / ruralHouses / src / domain / Booking.java
index 0ce0ddc..fd72de6 100644 (file)
@@ -10,6 +10,7 @@ public class Booking implements Serializable {
        private Date bookingDate;
        private String telephone;
        private Offer offer;
+       private boolean isAccepted;
        
        
        public Booking() {
@@ -24,6 +25,7 @@ public class Booking implements Serializable {
                //Booking date is assigned to actual date
                this.bookingDate= new java.util.Date(System.currentTimeMillis());
                this.isPaid=false;
+               this.isAccepted=false;
        }
        
        public void imprimete(){
@@ -32,6 +34,7 @@ public class Booking implements Serializable {
                System.out.println(bookingDate);
                System.out.println(telephone);
                System.out.println(offer);              
+               System.out.println(this.isAccepted);    
        }
 
        public int getBookNumber() {
@@ -78,4 +81,8 @@ public class Booking implements Serializable {
                return isPaid;
        }
        
+       public boolean isAccepted(){
+               return this.isAccepted;
+       }
+       
 }
\ No newline at end of file