[java]代码库
package BookingGym.model;
import java.util.Date;
import java.util.Objects;
public class Reservation {
private int r_id_reservation;
private int r_id_client;
private String r_hall;
private Date r_begin_visits;
private Date r_end_visits;
private int r_id_tariff;
private int r_id_status;
public Reservation(){}
public Reservation(int r_id_reservation, int r_id_client, String r_hall, Date r_begin_visits, Date r_end_visits, int r_id_tariff, int r_id_status) {
this.r_id_reservation = r_id_reservation;
this.r_id_client = r_id_client;
this.r_hall = r_hall;
this.r_begin_visits = r_begin_visits;
this.r_end_visits = r_end_visits;
this.r_id_tariff = r_id_tariff;
this.r_id_status = r_id_status;
}
public int getR_id_reservation() {
return r_id_reservation;
}
public void setR_id_reservation(int r_id_reservation) {
this.r_id_reservation = r_id_reservation;
}
public int getR_id_client() {
return r_id_client;
}
public void setR_id_client(int r_id_client) {
this.r_id_client = r_id_client;
}
public String getR_hall() {
return r_hall;
}
public void setR_hall(String r_hall) {
this.r_hall = r_hall;
}
public Date getR_begin_visits() {
return r_begin_visits;
}
public void setR_begin_visits(Date r_begin_visits) {
this.r_begin_visits = r_begin_visits;
}
public Date getR_end_visits() {
return r_end_visits;
}
public void setR_end_visits(Date r_end_visits) {
this.r_end_visits = r_end_visits;
}
public int getR_id_tariff() {
return r_id_tariff;
}
public void setR_id_tariff(int r_id_tariff) {
this.r_id_tariff = r_id_tariff;
}
public int getR_id_status() {
return r_id_status;
}
public void setR_id_status(int r_id_status) {
this.r_id_status = r_id_status;
}
@Override
public int hashCode() {
int hash = 5;
hash = 89 * hash + (int) (this.r_id_reservation ^ (this.r_id_reservation >>> 32));
hash = 89 * hash + (int) (this.r_id_client ^ (this.r_id_client >>> 32));
hash = 89 * hash + Objects.hashCode(this.r_hall);
hash = 89 * hash + Objects.hashCode(this.r_begin_visits);
hash = 89 * hash + Objects.hashCode(this.r_end_visits);
hash = 89 * hash + (int) (this.r_id_tariff ^ (this.r_id_tariff >>> 32));
hash = 89 * hash + (int) (this.r_id_status ^ (this.r_id_status >>> 32));
return hash;
}
[源代码打包下载]
初级程序员
by: 初辰 发表于:2022-01-07 18:48:38 顶(0) | 踩(0) 回复
最后少一个}
回复评论