1 package org.objectweb.petals.demo.icare.model; 2 3 import java.util.Date ; 4 5 13 public class Reservation extends Entity 14 { 15 public Reservation() { 16 super(); 17 } 18 19 private Date startDate; 20 21 private Date endDate; 22 23 private String clientName; 24 25 private Car car; 26 27 public Car getCar() { 28 return car; 29 } 30 31 public void setCar(Car car) { 32 this.car = car; 33 } 34 35 public String getClientName() { 36 return clientName; 37 } 38 39 public void setClientName(String clientName) { 40 this.clientName = clientName; 41 } 42 43 public Date getEndDate() { 44 return endDate; 45 } 46 47 public void setEndDate(Date endDate) { 48 this.endDate = endDate; 49 } 50 51 public Date getStartDate() { 52 return startDate; 53 } 54 55 public void setStartDate(Date startDate) { 56 this.startDate = startDate; 57 } 58 59 public Reservation(Date startDate, Date endDate, String clientName, Car car) { 60 super(); 61 this.startDate = startDate; 62 this.endDate = endDate; 63 this.clientName = clientName; 64 this.car = car; 65 } 66 67 public String toString(){ 68 return "anass"; 69 } 70 71 } 72 | Popular Tags |