package com.springbook;
import java.util.Set;
public class Customer {
private int custId;
private String firstName;
private String lastName;
private Set reservations;
public Set getReservations() {
return reservations;
}
public void setReservations(Set reservations) {
this.reservations = reservations;
}
public int getCustId() {
return custId;
}
public void setCustId(int custId) {
this.custId = custId;
}
public String getFirstName() {
return firstName;
}
public void setFirstName(String firstName) {
this.firstName = firstName;
}
public String getLastName() {
return lastName;
}
public void setLastName(String lastName) {
this.lastName = lastName;
}
public Customer(int custId, String firstName, String lastName) {
this.custId = custId;
this.firstName = firstName;
this.lastName = lastName;
}
public Customer() {
}
public String toString() {
return "Customer : " +
"custId -- " + custId +
"\n: firstName -- " + firstName +
"\n: lastName -- " + lastName +
".\n";
}
}
|