1 package org.objectweb.petals.demo.icare.model; 2 3 import java.util.Set ; 4 5 15 public class Car extends Entity { 16 private Category category; 17 18 private Set <Reservation> reservations; 19 20 private String brand; 21 22 private String model; 23 24 public Car() { 25 super(); 26 } 27 28 public Car(Category category, String brand, String model) { 29 super(); 30 this.category = category; 31 this.brand = brand; 32 this.model = model; 33 } 34 35 public String getBrand() { 36 return brand; 37 } 38 39 public void setBrand(String brand) { 40 this.brand = brand; 41 } 42 43 public Category getCategory() { 44 return category; 45 } 46 47 public void setCategory(Category category) { 48 this.category = category; 49 } 50 51 public String getModel() { 52 return model; 53 } 54 55 public void setModel(String model) { 56 this.model = model; 57 } 58 59 public Set <Reservation> getReservations() { 60 return reservations; 61 } 62 63 public void setReservations(Set <Reservation> reservations) { 64 this.reservations = reservations; 65 } 66 67 public String toString(){ 68 return ("(" + category + ") " + brand + " " + model); 70 } 71 72 } 73 | Popular Tags |