package database.dataview;

import java.sql.Date;

public class view_reservation {
	private final int reservation_p_id;
	private final Date reservation_debut;
    private final Date reservation_fin;
    private final int status_chambre_p_id;
    private final String status_chambre_description;
    private final int chambre_p_id;
    private final int chambre_nombredelits;
    private final Boolean chambre_devantlhotel;
    private final int chambre_nombreEtage;
    private final String chambre_numero;
    private final String chambre_description;
    private final String reservation_commentaire;
    private final int groupe_p_id;
    private final String groupe_nom;
    private final int client_p_id;
    private final String client_nom;
    private final String client_prenom;
	/**
	 * @param reservation_p_id
	 * @param reservation_debut
	 * @param reservation_fin
	 * @param status_chambre_p_id
	 * @param status_chambre_description
	 * @param chambre_p_id
	 * @param chambre_nombredelits
	 * @param chambre_devantlhotel
	 * @param chambre_nombreEtage
	 * @param chambre_numero
	 * @param chambre_description
	 * @param reservation_commentaire
	 * @param groupe_p_id
	 * @param groupe_nom
	 * @param client_p_id
	 * @param client_nom
	 * @param client_prenom
	 */
	public view_reservation(int reservation_p_id, Date reservation_debut,
			Date reservation_fin, int status_chambre_p_id,
			String status_chambre_description, int chambre_p_id,
			int chambre_nombredelits, Boolean chambre_devantlhotel,
			int chambre_nombreEtage, String chambre_numero,
			String chambre_description, String reservation_commentaire,
			int groupe_p_id, String groupe_nom, int client_p_id,
			String client_nom, String client_prenom) {
		super();
		this.reservation_p_id = reservation_p_id;
		this.reservation_debut = reservation_debut;
		this.reservation_fin = reservation_fin;
		this.status_chambre_p_id = status_chambre_p_id;
		this.status_chambre_description = status_chambre_description;
		this.chambre_p_id = chambre_p_id;
		this.chambre_nombredelits = chambre_nombredelits;
		this.chambre_devantlhotel = chambre_devantlhotel;
		this.chambre_nombreEtage = chambre_nombreEtage;
		this.chambre_numero = chambre_numero;
		this.chambre_description = chambre_description;
		this.reservation_commentaire = reservation_commentaire;
		this.groupe_p_id = groupe_p_id;
		this.groupe_nom = groupe_nom;
		this.client_p_id = client_p_id;
		this.client_nom = client_nom;
		this.client_prenom = client_prenom;
	}
	/**
	 * @return the reservation_p_id
	 */
	public int getReservation_p_id() {
		return reservation_p_id;
	}
	/**
	 * @return the reservation_debut
	 */
	public Date getReservation_debut() {
		return reservation_debut;
	}
	/**
	 * @return the reservation_fin
	 */
	public Date getReservation_fin() {
		return reservation_fin;
	}
	/**
	 * @return the status_chambre_p_id
	 */
	public int getStatus_chambre_p_id() {
		return status_chambre_p_id;
	}
	/**
	 * @return the status_chambre_description
	 */
	public String getStatus_chambre_description() {
		return status_chambre_description;
	}
	/**
	 * @return the chambre_p_id
	 */
	public int getChambre_p_id() {
		return chambre_p_id;
	}
	/**
	 * @return the chambre_nombredelits
	 */
	public int getChambre_nombredelits() {
		return chambre_nombredelits;
	}
	/**
	 * @return the chambre_devantlhotel
	 */
	public Boolean getChambre_devantlhotel() {
		return chambre_devantlhotel;
	}
	/**
	 * @return the chambre_nombreEtage
	 */
	public int getChambre_nombreEtage() {
		return chambre_nombreEtage;
	}
	/**
	 * @return the chambre_numero
	 */
	public String getChambre_numero() {
		return chambre_numero;
	}
	/**
	 * @return the chambre_description
	 */
	public String getChambre_description() {
		return chambre_description;
	}
	/**
	 * @return the reservation_commentaire
	 */
	public String getReservation_commentaire() {
		return reservation_commentaire;
	}
	/**
	 * @return the groupe_p_id
	 */
	public int getGroupe_p_id() {
		return groupe_p_id;
	}
	/**
	 * @return the groupe_nom
	 */
	public String getGroupe_nom() {
		return groupe_nom;
	}
	/**
	 * @return the client_p_id
	 */
	public int getClient_p_id() {
		return client_p_id;
	}
	/**
	 * @return the client_nom
	 */
	public String getClient_nom() {
		return client_nom;
	}
	/**
	 * @return the client_prenom
	 */
	public String getClient_prenom() {
		return client_prenom;
	}
	/* (non-Javadoc)
	 * @see java.lang.Object#hashCode()
	 */
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime
				* result
				+ ((chambre_description == null) ? 0 : chambre_description
						.hashCode());
		result = prime
				* result
				+ ((chambre_devantlhotel == null) ? 0 : chambre_devantlhotel
						.hashCode());
		result = prime * result + chambre_nombreEtage;
		result = prime * result + chambre_nombredelits;
		result = prime * result
				+ ((chambre_numero == null) ? 0 : chambre_numero.hashCode());
		result = prime * result + chambre_p_id;
		result = prime * result
				+ ((client_nom == null) ? 0 : client_nom.hashCode());
		result = prime * result + client_p_id;
		result = prime * result
				+ ((client_prenom == null) ? 0 : client_prenom.hashCode());
		result = prime * result
				+ ((groupe_nom == null) ? 0 : groupe_nom.hashCode());
		result = prime * result + groupe_p_id;
		result = prime
				* result
				+ ((reservation_commentaire == null) ? 0
						: reservation_commentaire.hashCode());
		result = prime
				* result
				+ ((reservation_debut == null) ? 0 : reservation_debut
						.hashCode());
		result = prime * result
				+ ((reservation_fin == null) ? 0 : reservation_fin.hashCode());
		result = prime * result + reservation_p_id;
		result = prime
				* result
				+ ((status_chambre_description == null) ? 0
						: status_chambre_description.hashCode());
		result = prime * result + status_chambre_p_id;
		return result;
	}
	/* (non-Javadoc)
	 * @see java.lang.Object#equals(java.lang.Object)
	 */
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		view_reservation other = (view_reservation) obj;
		if (chambre_description == null) {
			if (other.chambre_description != null)
				return false;
		} else if (!chambre_description.equals(other.chambre_description))
			return false;
		if (chambre_devantlhotel == null) {
			if (other.chambre_devantlhotel != null)
				return false;
		} else if (!chambre_devantlhotel.equals(other.chambre_devantlhotel))
			return false;
		if (chambre_nombreEtage != other.chambre_nombreEtage)
			return false;
		if (chambre_nombredelits != other.chambre_nombredelits)
			return false;
		if (chambre_numero == null) {
			if (other.chambre_numero != null)
				return false;
		} else if (!chambre_numero.equals(other.chambre_numero))
			return false;
		if (chambre_p_id != other.chambre_p_id)
			return false;
		if (client_nom == null) {
			if (other.client_nom != null)
				return false;
		} else if (!client_nom.equals(other.client_nom))
			return false;
		if (client_p_id != other.client_p_id)
			return false;
		if (client_prenom == null) {
			if (other.client_prenom != null)
				return false;
		} else if (!client_prenom.equals(other.client_prenom))
			return false;
		if (groupe_nom == null) {
			if (other.groupe_nom != null)
				return false;
		} else if (!groupe_nom.equals(other.groupe_nom))
			return false;
		if (groupe_p_id != other.groupe_p_id)
			return false;
		if (reservation_commentaire == null) {
			if (other.reservation_commentaire != null)
				return false;
		} else if (!reservation_commentaire
				.equals(other.reservation_commentaire))
			return false;
		if (reservation_debut == null) {
			if (other.reservation_debut != null)
				return false;
		} else if (!reservation_debut.equals(other.reservation_debut))
			return false;
		if (reservation_fin == null) {
			if (other.reservation_fin != null)
				return false;
		} else if (!reservation_fin.equals(other.reservation_fin))
			return false;
		if (reservation_p_id != other.reservation_p_id)
			return false;
		if (status_chambre_description == null) {
			if (other.status_chambre_description != null)
				return false;
		} else if (!status_chambre_description
				.equals(other.status_chambre_description))
			return false;
		if (status_chambre_p_id != other.status_chambre_p_id)
			return false;
		return true;
	}
	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return "view_reservation [reservation_p_id=" + reservation_p_id
				+ ", reservation_debut=" + reservation_debut
				+ ", reservation_fin=" + reservation_fin
				+ ", status_chambre_p_id=" + status_chambre_p_id
				+ ", status_chambre_description=" + status_chambre_description
				+ ", chambre_p_id=" + chambre_p_id + ", chambre_nombredelits="
				+ chambre_nombredelits + ", chambre_devantlhotel="
				+ chambre_devantlhotel + ", chambre_nombreEtage="
				+ chambre_nombreEtage + ", chambre_numero=" + chambre_numero
				+ ", chambre_description=" + chambre_description
				+ ", reservation_commentaire=" + reservation_commentaire
				+ ", groupe_p_id=" + groupe_p_id + ", groupe_nom=" + groupe_nom
				+ ", client_p_id=" + client_p_id + ", client_nom=" + client_nom
				+ ", client_prenom=" + client_prenom + "]";
	}
    
    
}
