You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
745 B
25 lines
745 B
package jichuti1;
|
|
|
|
import java.time.LocalDate;
|
|
|
|
/**
|
|
* 预约类,记录读者预约图书的信息
|
|
*/
|
|
public class Reservation {
|
|
private String reservationId; // 预约ID
|
|
private Reader reader; // 预约的读者
|
|
private Book book; // 预约的图书
|
|
private LocalDate reservationDate; // 预约日期
|
|
|
|
public Reservation(String reservationId, Reader reader, Book book, LocalDate reservationDate) {
|
|
this.reservationId = reservationId;
|
|
this.reader = reader;
|
|
this.book = book;
|
|
this.reservationDate = reservationDate;
|
|
}
|
|
|
|
// getter
|
|
public String getReservationId() { return reservationId; }
|
|
public Book getBook() { return book; }
|
|
}
|