package database.dataview;

import java.math.BigDecimal;
import java.sql.Date;
import java.sql.Time;

public class view_vente {
	private final int vente_p_id;
	private final Date vente_jour;
	private final Time vente_heure;
	private final BigDecimal vente_prix;
	private final int facture_fk_id;
	private final int article_p_id;
	private final String article_code;
	private final String article_description;
	private final Boolean article_taxable;
	private final Boolean article_actif;
	private final String categorie_article_description;
	private final int reservation_fk_id;
	private final int quantite; 
	private final BigDecimal taxe_tps; 
	private final BigDecimal taxe_tvq;
	private final BigDecimal herbergement;
	/**
	 * @param vente_p_id
	 * @param vente_jour
	 * @param vente_heure
	 * @param vente_prix
	 * @param facture_fk_id
	 * @param article_p_id
	 * @param article_code
	 * @param article_description
	 * @param article_taxable
	 * @param article_actif
	 * @param categorie_article_description
	 * @param reservation_fk_id
	 * @param quantite
	 * @param taxe_tps
	 * @param taxe_tvq
	 * @param herbergement
	 */
	public view_vente(int vente_p_id, Date vente_jour, Time vente_heure,
			BigDecimal vente_prix, int facture_fk_id, int article_p_id,
			String article_code, String article_description,
			Boolean article_taxable, Boolean article_actif,
			String categorie_article_description, int reservation_fk_id,
			int quantite, BigDecimal taxe_tps, BigDecimal taxe_tvq,
			BigDecimal herbergement) {
		super();
		this.vente_p_id = vente_p_id;
		this.vente_jour = vente_jour;
		this.vente_heure = vente_heure;
		this.vente_prix = vente_prix;
		this.facture_fk_id = facture_fk_id;
		this.article_p_id = article_p_id;
		this.article_code = article_code;
		this.article_description = article_description;
		this.article_taxable = article_taxable;
		this.article_actif = article_actif;
		this.categorie_article_description = categorie_article_description;
		this.reservation_fk_id = reservation_fk_id;
		this.quantite = quantite;
		this.taxe_tps = taxe_tps;
		this.taxe_tvq = taxe_tvq;
		this.herbergement = herbergement;
	}
	/**
	 * @return the vente_p_id
	 */
	public int getVente_p_id() {
		return vente_p_id;
	}
	/**
	 * @return the vente_jour
	 */
	public Date getVente_jour() {
		return vente_jour;
	}
	/**
	 * @return the vente_heure
	 */
	public Time getVente_heure() {
		return vente_heure;
	}
	/**
	 * @return the vente_prix
	 */
	public BigDecimal getVente_prix() {
		return vente_prix;
	}
	/**
	 * @return the facture_fk_id
	 */
	public int getFacture_fk_id() {
		return facture_fk_id;
	}
	/**
	 * @return the article_p_id
	 */
	public int getArticle_p_id() {
		return article_p_id;
	}
	/**
	 * @return the article_code
	 */
	public String getArticle_code() {
		return article_code;
	}
	/**
	 * @return the article_description
	 */
	public String getArticle_description() {
		return article_description;
	}
	/**
	 * @return the article_taxable
	 */
	public Boolean getArticle_taxable() {
		return article_taxable;
	}
	/**
	 * @return the article_actif
	 */
	public Boolean getArticle_actif() {
		return article_actif;
	}
	/**
	 * @return the categorie_article_description
	 */
	public String getCategorie_article_description() {
		return categorie_article_description;
	}
	/**
	 * @return the reservation_fk_id
	 */
	public int getReservation_fk_id() {
		return reservation_fk_id;
	}
	/**
	 * @return the quantite
	 */
	public int getQuantite() {
		return quantite;
	}
	/**
	 * @return the taxe_tps
	 */
	public BigDecimal getTaxe_tps() {
		return taxe_tps;
	}
	/**
	 * @return the taxe_tvq
	 */
	public BigDecimal getTaxe_tvq() {
		return taxe_tvq;
	}
	/**
	 * @return the herbergement
	 */
	public BigDecimal getHerbergement() {
		return herbergement;
	}
	/* (non-Javadoc)
	 * @see java.lang.Object#hashCode()
	 */
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((article_actif == null) ? 0 : article_actif.hashCode());
		result = prime * result
				+ ((article_code == null) ? 0 : article_code.hashCode());
		result = prime
				* result
				+ ((article_description == null) ? 0 : article_description
						.hashCode());
		result = prime * result + article_p_id;
		result = prime * result
				+ ((article_taxable == null) ? 0 : article_taxable.hashCode());
		result = prime
				* result
				+ ((categorie_article_description == null) ? 0
						: categorie_article_description.hashCode());
		result = prime * result + facture_fk_id;
		result = prime * result
				+ ((herbergement == null) ? 0 : herbergement.hashCode());
		result = prime * result + quantite;
		result = prime * result + reservation_fk_id;
		result = prime * result
				+ ((taxe_tps == null) ? 0 : taxe_tps.hashCode());
		result = prime * result
				+ ((taxe_tvq == null) ? 0 : taxe_tvq.hashCode());
		result = prime * result
				+ ((vente_heure == null) ? 0 : vente_heure.hashCode());
		result = prime * result
				+ ((vente_jour == null) ? 0 : vente_jour.hashCode());
		result = prime * result + vente_p_id;
		result = prime * result
				+ ((vente_prix == null) ? 0 : vente_prix.hashCode());
		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_vente other = (view_vente) obj;
		if (article_actif == null) {
			if (other.article_actif != null)
				return false;
		} else if (!article_actif.equals(other.article_actif))
			return false;
		if (article_code == null) {
			if (other.article_code != null)
				return false;
		} else if (!article_code.equals(other.article_code))
			return false;
		if (article_description == null) {
			if (other.article_description != null)
				return false;
		} else if (!article_description.equals(other.article_description))
			return false;
		if (article_p_id != other.article_p_id)
			return false;
		if (article_taxable == null) {
			if (other.article_taxable != null)
				return false;
		} else if (!article_taxable.equals(other.article_taxable))
			return false;
		if (categorie_article_description == null) {
			if (other.categorie_article_description != null)
				return false;
		} else if (!categorie_article_description
				.equals(other.categorie_article_description))
			return false;
		if (facture_fk_id != other.facture_fk_id)
			return false;
		if (herbergement == null) {
			if (other.herbergement != null)
				return false;
		} else if (!herbergement.equals(other.herbergement))
			return false;
		if (quantite != other.quantite)
			return false;
		if (reservation_fk_id != other.reservation_fk_id)
			return false;
		if (taxe_tps == null) {
			if (other.taxe_tps != null)
				return false;
		} else if (!taxe_tps.equals(other.taxe_tps))
			return false;
		if (taxe_tvq == null) {
			if (other.taxe_tvq != null)
				return false;
		} else if (!taxe_tvq.equals(other.taxe_tvq))
			return false;
		if (vente_heure == null) {
			if (other.vente_heure != null)
				return false;
		} else if (!vente_heure.equals(other.vente_heure))
			return false;
		if (vente_jour == null) {
			if (other.vente_jour != null)
				return false;
		} else if (!vente_jour.equals(other.vente_jour))
			return false;
		if (vente_p_id != other.vente_p_id)
			return false;
		if (vente_prix == null) {
			if (other.vente_prix != null)
				return false;
		} else if (!vente_prix.equals(other.vente_prix))
			return false;
		return true;
	}
	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return "view_vente [vente_p_id=" + vente_p_id + ", vente_jour="
				+ vente_jour + ", vente_heure=" + vente_heure + ", vente_prix="
				+ vente_prix + ", facture_fk_id=" + facture_fk_id
				+ ", article_p_id=" + article_p_id + ", article_code="
				+ article_code + ", article_description=" + article_description
				+ ", article_taxable=" + article_taxable + ", article_actif="
				+ article_actif + ", categorie_article_description="
				+ categorie_article_description + ", reservation_fk_id="
				+ reservation_fk_id + ", quantite=" + quantite + ", taxe_tps="
				+ taxe_tps + ", taxe_tvq=" + taxe_tvq + ", herbergement="
				+ herbergement + "]";
	}

}
